summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-05-03 18:04:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-05-03 18:04:27 +0000
commit2659762e62a5b7328497e56ca723b7d69cbb3461 (patch)
treec0f35d0dda32ea755b01d37ac6723f108fc6cf4b /package/base-files
parent3ee45e61fe7ad6b8536d671aea077501ed150720 (diff)
downloadmtk-20170518-2659762e62a5b7328497e56ca723b7d69cbb3461.zip
mtk-20170518-2659762e62a5b7328497e56ca723b7d69cbb3461.tar.gz
mtk-20170518-2659762e62a5b7328497e56ca723b7d69cbb3461.tar.bz2
base-files: fix logic error in led default handling (patch from #19593)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45600
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/led2
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 ba4dd67..1a57e8a 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