From: Karl Palsson Date: Fri, 26 Aug 2016 11:17:49 +0000 (+0000) Subject: base-files: support oneshot leds properly. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad8d197b829af2a089c6099f4f1dbee31696116c;p=librecmc%2Flibrecmc.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: c0c3f2d4c917 leds: support oneshot as well as timer triggers Signed-off-by: Karl Palsson --- 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" ] && \