mirror of https://github.com/hak5/openwrt.git
base-files: support oneshot leds properly.
oneshot trigger configurations for LEDs are created, but the on/off
timing configurations are ignored. generate_config is correctly creating
oneshot configs, but the later led script doesn't recognise the trigger
details.
Fixes: c0c3f2d4c9
leds: support oneshot as well as timer triggers
Signed-off-by: Karl Palsson <karlp@etactica.com>
parent
b5f7221afa
commit
ad8d197b82
|
@ -64,7 +64,7 @@ load_led() {
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"timer")
|
"timer"|"oneshot")
|
||||||
[ -n "$delayon" ] && \
|
[ -n "$delayon" ] && \
|
||||||
echo $delayon > /sys/class/leds/${sysfs}/delay_on
|
echo $delayon > /sys/class/leds/${sysfs}/delay_on
|
||||||
[ -n "$delayoff" ] && \
|
[ -n "$delayoff" ] && \
|
||||||
|
|
Loading…
Reference in New Issue