"runway lights" for the Xiaomi AX3600 router
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PREV= | |
while :; do | |
for a in led_blue net_blue led_ant led_yellow net_yellow led_ant; do | |
[ -n "$PREV" ] && echo 0 > /sys/class/leds/$PREV/brightness | |
echo 1 > /sys/class/leds/$a/brightness | |
PREV=$a | |
sleep 1 | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment