lantiq: set default led configuration from /sys entry later, after per board settings
authorJohn Crispin <john@openwrt.org>
Mon, 17 Nov 2014 08:31:06 +0000 (08:31 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 17 Nov 2014 08:31:06 +0000 (08:31 +0000)
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
SVN-Revision: 43285

target/linux/lantiq/base-files/etc/uci-defaults/01_leds

index 2b3293b79efd560675b1b0da90586aa83f85fd19..c55854340a7083e9601b9e1bb400af714501d1de 100644 (file)
 [ -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