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:
parent
3ee45e61fe
commit
2659762e62
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue