mirror of https://github.com/hak5/openwrt-owl.git
base-files: fix logic error in led default handling (patch from #19593)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45600owl
parent
3ee45e61fe
commit
2659762e62
|
@ -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 New Issue