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>
This commit is contained in:
Karl Palsson 2016-08-26 11:17:49 +00:00 committed by John Crispin
parent b5f7221afa
commit ad8d197b82

View file

@ -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" ] && \