fixes broken if-then in led init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12411 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
533c261d29
commit
4c3d50f6f8
|
@ -26,8 +26,9 @@ load_led() {
|
|||
logger "setting up led : $name"
|
||||
[ -n "$default" ] && {
|
||||
[ $default -eq 1 ] &&
|
||||
echo 1 >/sys/class/leds/${sysfs}/brightness \
|
||||
|| echo 0 >/sys/class/leds/${sysfs}/brightness
|
||||
echo 1 >/sys/class/leds/${sysfs}/brightness
|
||||
[ $default -eq 1 ] ||
|
||||
echo 0 >/sys/class/leds/${sysfs}/brightness
|
||||
}
|
||||
[ -z "$trigger" ] && trigger=none
|
||||
echo $trigger > /sys/class/leds/${sysfs}/trigger
|
||||
|
|
Loading…
Reference in New Issue