diff options
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/etc/init.d/led | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index d1521a9a61..a6be788a5e 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -103,6 +103,12 @@ load_led() { start() { [ -e /sys/class/leds/ ] && { + local led + for led in /sys/class/leds/*; do + [ -e "$led/trigger" ] && echo "none" > "$led/trigger" + [ -e "$led/brightness" ] && echo "0" > "$led/brightness" + done + config_load system config_foreach load_led led } |