aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-11-14 16:53:48 +0000
committerJohn Crispin <john@openwrt.org>2014-11-14 16:53:48 +0000
commit901dddce318df0877bee693e3d7d37862b1beacb (patch)
treea431a7d005fab45252a327afc59dd4383cb33176 /target/linux/lantiq
parent7cc72e4b93f41e7071fb23b7ef00f4dd58ebed51 (diff)
downloadupstream-901dddce318df0877bee693e3d7d37862b1beacb.tar.gz
upstream-901dddce318df0877bee693e3d7d37862b1beacb.tar.bz2
upstream-901dddce318df0877bee693e3d7d37862b1beacb.zip
lantiq: set default led configuration from /sys entry later, after per board settings
Signed-off-by: Eddi De Pieri <eddi@depieri.net> SVN-Revision: 43255
Diffstat (limited to 'target/linux/lantiq')
-rw-r--r--target/linux/lantiq/base-files/etc/uci-defaults/01_leds10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
index 2b3293b79e..c55854340a 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
@@ -12,11 +12,6 @@
[ -e "/sys/class/leds/usb2" ] && ucidef_set_led_usbdev "usb2" "usb2" "usb2" "2-1"
[ -e "/sys/class/leds/internet" ] && ucidef_set_led_netdev "internet" "internet" "internet" "pppoe-wan"
-for a in `ls /sys/class/leds/`; do
- grep -q "\[none\]" /sys/class/leds/$a/trigger
- [ $? -eq 0 ] && ucidef_set_led_default $a $a $a `cat /sys/class/leds/$a/brightness`
-done
-
board=$(lantiq_board_name)
case "$board" in
@@ -34,6 +29,11 @@ BTHOMEHUBV2B)
;;
esac
+for a in `ls /sys/class/leds/`; do
+ grep -q "\[none\]" /sys/class/leds/$a/trigger
+ [ $? -eq 0 ] && ucidef_set_led_default $a $a $a `cat /sys/class/leds/$a/brightness`
+done
+
ucidef_commit_leds
exit 0