diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-08-27 20:33:13 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-08-27 20:33:13 +0000 |
commit | f773249a7abe98d45f726fee11458ecafb21e2d4 (patch) | |
tree | bb90adf48db67f88ecde347d9f1759d11adaf311 /package/base-files | |
parent | 914e3a320db488a8f13a63d2a2633564fc2894cf (diff) |
fixes broken if-then in led init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12411 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-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 cf7bf4203..1f05d724a 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 |