From 2659762e62a5b7328497e56ca723b7d69cbb3461 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 3 May 2015 18:04:27 +0000 Subject: [PATCH] base-files: fix logic error in led default handling (patch from #19593) Signed-off-by: Felix Fietkau SVN-Revision: 45600 --- package/base-files/files/etc/init.d/led | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1