From ad8d197b829af2a089c6099f4f1dbee31696116c Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 26 Aug 2016 11:17:49 +0000 Subject: [PATCH] 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: c0c3f2d4c917 leds: support oneshot as well as timer triggers Signed-off-by: Karl Palsson --- package/base-files/files/etc/init.d/led | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index aca0149c24..79f2904f7d 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -64,7 +64,7 @@ load_led() { } ;; - "timer") + "timer"|"oneshot") [ -n "$delayon" ] && \ echo $delayon > /sys/class/leds/${sysfs}/delay_on [ -n "$delayoff" ] && \ -- 2.25.1