1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 22:35:11 +02:00

fixes broken if-then in led init script

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12411 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
blogic 2008-08-27 20:33:13 +00:00
parent 914e3a320d
commit f773249a7a

View File

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