summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2016-08-26 11:17:49 +0000
committerJohn Crispin <john@phrozen.org>2016-09-05 07:27:15 +0200
commitad8d197b829af2a089c6099f4f1dbee31696116c (patch)
treed84cf0dd47330df4a6e5a0f0b227de3dd429eaf5 /package/base-files/files
parentb5f7221afa296d0691d731d08e168acdf97c93a2 (diff)
downloadmtk-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/files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/led2
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" ] && \