diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-05-03 18:04:27 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-05-03 18:04:27 +0000 |
commit | e7cb95c5c63a050b8cf63e797a0acaeab6cfb834 (patch) | |
tree | cf3d5b70fb9d1a4aeb73c7663ff99ccc976aa5c8 /package/base-files/files | |
parent | c5296f0bcbad3606a7e1d0f8123f9e813e773773 (diff) | |
download | upstream-e7cb95c5c63a050b8cf63e797a0acaeab6cfb834.tar.gz upstream-e7cb95c5c63a050b8cf63e797a0acaeab6cfb834.tar.bz2 upstream-e7cb95c5c63a050b8cf63e797a0acaeab6cfb834.zip |
base-files: fix logic error in led default handling (patch from #19593)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45600 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/etc/init.d/led | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index ba4dd6791d..1a57e8afd7 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -35,7 +35,7 @@ load_led() { [ -e /sys/class/leds/${sysfs}/brightness ] && { echo "setting up led ${name}" - [ "$default" = 0 ] || + [ "$default" = 0 ] && echo 0 >/sys/class/leds/${sysfs}/brightness echo $trigger > /sys/class/leds/${sysfs}/trigger 2> /dev/null |