base-files: fix logic error in led default handling (patch from #19593)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45600
This commit is contained in:
Felix Fietkau 2015-05-03 18:04:27 +00:00
parent 3ee45e61fe
commit 2659762e62

View file

@ -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