diff options
author | John Crispin <blogic@openwrt.org> | 2014-11-17 08:31:06 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-11-17 08:31:06 +0000 |
commit | 7744406bbedc5bdc3cb246f7bc4aa387ca0d346a (patch) | |
tree | 58355d32a8be478d6d50467f52992e1b7c3d6920 /target/linux/lantiq/base-files | |
parent | df50919f2fb28a2a40e99e288dd096cfdb6c2512 (diff) | |
download | upstream-7744406bbedc5bdc3cb246f7bc4aa387ca0d346a.tar.gz upstream-7744406bbedc5bdc3cb246f7bc4aa387ca0d346a.tar.bz2 upstream-7744406bbedc5bdc3cb246f7bc4aa387ca0d346a.zip |
lantiq: set default led configuration from /sys entry later, after per board settings
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43285 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/base-files')
-rw-r--r-- | target/linux/lantiq/base-files/etc/uci-defaults/01_leds | 10 |
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 |