Turn on/off PWR
led and ath9k_htc-phy0
led of my RPi.
$ make
$ make install # Install on ~/.local/bin
-------------------------
Turn on/off LED1 and WiFi adapter LEDs
Options are:
--help: print this help
-w: turn on/off WiFi adapter led
-l: turn on/off LED1 led
$ sudo sysled -w off # Turn off wifi adapter led
$ sudo sysled -l off # Turn off PWR led
$ sudo sysled -l on -w off
$ make uninstall
Yes, I know, I can do it with sudo sh -c "echo none > /sys/class/leds/[the_led]/trigger"
but I like to complicate myself.