aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
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/etc
parentb5f7221afa296d0691d731d08e168acdf97c93a2 (diff)
downloadupstream-ad8d197b829af2a089c6099f4f1dbee31696116c.tar.gz
upstream-ad8d197b829af2a089c6099f4f1dbee31696116c.tar.bz2
upstream-ad8d197b829af2a089c6099f4f1dbee31696116c.zip
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/etc')
-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 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" ] && \