base-files: support oneshot leds properly.
authorKarl Palsson <karlp@etactica.com>
Fri, 26 Aug 2016 11:17:49 +0000 (11:17 +0000)
committerJohn Crispin <john@phrozen.org>
Mon, 5 Sep 2016 05:27:15 +0000 (07:27 +0200)
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 <karlp@etactica.com>
package/base-files/files/etc/init.d/led

index aca0149c245883cfa2e13df2416c3821bbbf8cc2..79f2904f7da749c44df8bdae5232ba07e978f62f 100755 (executable)
@@ -64,7 +64,7 @@ load_led() {
                        }
                        ;;
 
-               "timer")
+               "timer"|"oneshot")
                        [ -n "$delayon" ] && \
                                echo $delayon > /sys/class/leds/${sysfs}/delay_on
                        [ -n "$delayoff" ] && \