lantiq: add a hook to make leds work on the secondary usb bus
authorJohn Crispin <john@openwrt.org>
Thu, 25 Jul 2013 20:29:01 +0000 (20:29 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 25 Jul 2013 20:29:01 +0000 (20:29 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37538

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

index 1b30318..0878de8 100755 (executable)
@@ -9,7 +9,8 @@
 
 [ -e "/sys/class/leds/wifi" ] && ucidef_set_led_wlan "wifi" "wifi" "wifi" "phy0tpt"
 [ -e "/sys/class/leds/usb" ] && ucidef_set_led_usbdev "usb" "usb" "usb" "1-1"
-[ -e "/sys/class/leds/internet" ] &&   ucidef_set_led_netdev "internet" "internet" "internet" "pppoe-wan"
+[ -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