mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 08:01:08 +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:
parent
914e3a320d
commit
f773249a7a
@ -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
Block a user