diff options
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/etc/init.d/led | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index cf7bf42..1f05d72 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -26,8 +26,9 @@ load_led() { logger "setting up led : $name" [ -n "$default" ] && { [ $default -eq 1 ] && - echo 1 >/sys/class/leds/${sysfs}/brightness \ - || echo 0 >/sys/class/leds/${sysfs}/brightness + echo 1 >/sys/class/leds/${sysfs}/brightness + [ $default -eq 1 ] || + echo 0 >/sys/class/leds/${sysfs}/brightness } [ -z "$trigger" ] && trigger=none echo $trigger > /sys/class/leds/${sysfs}/trigger |