diff options
author | Karl Palsson <karlp@etactica.com> | 2016-08-26 11:17:49 +0000 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-09-05 07:27:15 +0200 |
commit | ad8d197b829af2a089c6099f4f1dbee31696116c (patch) | |
tree | d84cf0dd47330df4a6e5a0f0b227de3dd429eaf5 /package/base-files | |
parent | b5f7221afa296d0691d731d08e168acdf97c93a2 (diff) | |
download | mtk-20170518-ad8d197b829af2a089c6099f4f1dbee31696116c.zip mtk-20170518-ad8d197b829af2a089c6099f4f1dbee31696116c.tar.gz mtk-20170518-ad8d197b829af2a089c6099f4f1dbee31696116c.tar.bz2 |
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 <karlp@etactica.com>
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/etc/init.d/led | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index aca0149..79f2904 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" ] && \ |