control led behavior
There are three led lights in OpenStick. By default, blue indicates the wifi connection status, and red indicates whether the system is still in normal operation.
You can modify led behavior by echo <behavior> > /sys/class/led/<name>/trigger .
The available behaviors are as follows
root@openstick:/sys/class/leds/green:internet# cat trigger
[none] usb-gadget usb-host rfkill-any rfkill-none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock timer heartbeat cpu cpu0 cpu1 cpu2 cpu3 default-on panic mmc0 bluetooth-power hci0-power rfkill0 phy0rx phy0tx phy0assoc phy0radio rfkill1
For example, define the behavior of green led as the active state of usb device mode
root@openstick:/sys/class/leds/green:internet# echo usb-gadget > trigger
After writing this string, the led behavior will take effect immediately, and restart will fail