Skip to content
Snippets Groups Projects
Commit ad8d197b authored by Karl Palsson's avatar Karl Palsson Committed by John Crispin
Browse files

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: c0c3f2d4 leds: support oneshot as well as timer triggers
Signed-off-by: default avatarKarl Palsson <karlp@etactica.com>
parent b5f7221a
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ load_led() { ...@@ -64,7 +64,7 @@ load_led() {
} }
;; ;;
"timer") "timer"|"oneshot")
[ -n "$delayon" ] && \ [ -n "$delayon" ] && \
echo $delayon > /sys/class/leds/${sysfs}/delay_on echo $delayon > /sys/class/leds/${sysfs}/delay_on
[ -n "$delayoff" ] && \ [ -n "$delayoff" ] && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment