mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
fixes broken if-then in led init script
SVN-Revision: 12411
This commit is contained in:
parent
0e00c74946
commit
12df593510
@ -26,8 +26,9 @@ load_led() {
|
|||||||
logger "setting up led : $name"
|
logger "setting up led : $name"
|
||||||
[ -n "$default" ] && {
|
[ -n "$default" ] && {
|
||||||
[ $default -eq 1 ] &&
|
[ $default -eq 1 ] &&
|
||||||
echo 1 >/sys/class/leds/${sysfs}/brightness \
|
echo 1 >/sys/class/leds/${sysfs}/brightness
|
||||||
|| echo 0 >/sys/class/leds/${sysfs}/brightness
|
[ $default -eq 1 ] ||
|
||||||
|
echo 0 >/sys/class/leds/${sysfs}/brightness
|
||||||
}
|
}
|
||||||
[ -z "$trigger" ] && trigger=none
|
[ -z "$trigger" ] && trigger=none
|
||||||
echo $trigger > /sys/class/leds/${sysfs}/trigger
|
echo $trigger > /sys/class/leds/${sysfs}/trigger
|
||||||
|
Loading…
Reference in New Issue
Block a user