diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-11 06:45:02 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-11 06:45:02 +0000 |
commit | 8bbe39a23ac53b5f9ed93798ac8397035e1f4cb4 (patch) | |
tree | 0cdb15ba996d81d48bb2d22567a9df24592ba419 /package/base-files/files/etc | |
parent | 4d84131c0def3a39c78318441a5eebe375fbc83f (diff) |
[package] base-files: skip LEDs handled by rssileds in led init-script
Without this, /etc/init.d/led will try to set the non-existing 'rssi' trigger.
This doesn't harm as the kernel will refuse this setting, but it outputs some
ugly log-lines:
Jun 24 10:15:19 OpenWrt user.info sysinit: setting up led RSSILOW
Jun 24 10:15:19 OpenWrt user.info sysinit: sh: write error: Invalid argument
...
In order to avoid this, skip LEDs with trigger = "rssi" in /etc/init.d/led
Signed-off-by: Daniel Golle <dgolle@allnet.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33717 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-x | package/base-files/files/etc/init.d/led | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index 43964bf0bb..f3f3c3f8a7 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -25,6 +25,11 @@ load_led() { config_get interval $1 interval "50" config_get port_state $1 port_state + if [ "$trigger" = "rssi" ]; then + # handled by rssileds userspace process + return + fi + [ -e /sys/class/leds/${sysfs}/brightness ] && { echo "setting up led ${name}" [ "$default" != nil ] && { |