Skip to content

Instantly share code, notes, and snippets.

@geekman
Created July 29, 2020 16:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geekman/dce149de4587aaf8f90aa23de568a01b to your computer and use it in GitHub Desktop.
Save geekman/dce149de4587aaf8f90aa23de568a01b to your computer and use it in GitHub Desktop.
"runway lights" for the Xiaomi AX3600 router
#!/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