projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5296f0
)
base-files: fix logic error in led default handling (patch from #19593)
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 3 May 2015 18:04:27 +0000
(18:04 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 3 May 2015 18:04:27 +0000
(18:04 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45600
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/base-files/files/etc/init.d/led
patch
|
blob
|
history
diff --git
a/package/base-files/files/etc/init.d/led
b/package/base-files/files/etc/init.d/led
index
ba4dd67
..
1a57e8a
100755
(executable)
--- a/
package/base-files/files/etc/init.d/led
+++ b/
package/base-files/files/etc/init.d/led
@@
-35,7
+35,7
@@
load_led() {
[ -e /sys/class/leds/${sysfs}/brightness ] && {
echo "setting up led ${name}"
- [ "$default" = 0 ]
||
+ [ "$default" = 0 ]
&&
echo 0 >/sys/class/leds/${sysfs}/brightness
echo $trigger > /sys/class/leds/${sysfs}/trigger 2> /dev/null