fixes broken if-then in led init script

SVN-Revision: 12411
owl
John Crispin 2008-08-27 20:33:13 +00:00
parent 0e00c74946
commit 12df593510
1 changed files with 3 additions and 2 deletions

View File

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