[source] base-files: support oneshot leds properly.

LEDE Commits lede-commits at lists.infradead.org
Sun Sep 4 22:31:18 PDT 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/ad8d197b829af2a089c6099f4f1dbee31696116c

commit ad8d197b829af2a089c6099f4f1dbee31696116c
Author: Karl Palsson <karlp at etactica.com>
AuthorDate: Fri Aug 26 11:17:49 2016 +0000

    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 at etactica.com>
---
 package/base-files/files/etc/init.d/led | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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" ] && \



More information about the lede-commits mailing list