|
|
@ -26,6 +26,8 @@ load_led() { |
|
|
|
config_get port_state $1 port_state |
|
|
|
config_get port_state $1 port_state |
|
|
|
config_get delay $1 delay "150" |
|
|
|
config_get delay $1 delay "150" |
|
|
|
config_get message $1 message "" |
|
|
|
config_get message $1 message "" |
|
|
|
|
|
|
|
config_get gpio $1 gpio "0" |
|
|
|
|
|
|
|
config_get inverted $1 inverted "0" |
|
|
|
|
|
|
|
|
|
|
|
if [ "$trigger" = "rssi" ]; then |
|
|
|
if [ "$trigger" = "rssi" ]; then |
|
|
|
# handled by rssileds userspace process |
|
|
|
# handled by rssileds userspace process |
|
|
@ -80,6 +82,11 @@ load_led() { |
|
|
|
echo $delay > /sys/class/leds/${sysfs}/delay |
|
|
|
echo $delay > /sys/class/leds/${sysfs}/delay |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"gpio") |
|
|
|
|
|
|
|
echo $gpio > /sys/class/leds/${sysfs}/gpio |
|
|
|
|
|
|
|
echo $inverted > /sys/class/leds/${sysfs}/inverted |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
switch[0-9]*) |
|
|
|
switch[0-9]*) |
|
|
|
local port_mask |
|
|
|
local port_mask |
|
|
|
|
|
|
|
|
|
|
|