summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-10-11 06:45:02 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-10-11 06:45:02 +0000
commitd3f22617a20127c4c2861bc86725d91958fa7953 (patch)
tree1b5f4404bf2a952615a01809fc84480bcea03bab /package/base-files/files
parentcd471b762f5774d541a0640414a7ed56e934cde5 (diff)
downloadmtk-20170518-d3f22617a20127c4c2861bc86725d91958fa7953.zip
mtk-20170518-d3f22617a20127c4c2861bc86725d91958fa7953.tar.gz
mtk-20170518-d3f22617a20127c4c2861bc86725d91958fa7953.tar.bz2
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> SVN-Revision: 33717
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/led5
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 43964bf..f3f3c3f 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 ] && {