aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-07-25 20:29:01 +0000
committerJohn Crispin <blogic@openwrt.org>2013-07-25 20:29:01 +0000
commit676534c57b1da72715550525d7184bde029f8238 (patch)
treee4086d23113b11a7b7650151f95559810f21c7c6 /target/linux/lantiq/base-files
parent01a3e3acf38c2039959662b9da956ea3a3654b27 (diff)
downloadupstream-676534c57b1da72715550525d7184bde029f8238.tar.gz
upstream-676534c57b1da72715550525d7184bde029f8238.tar.bz2
upstream-676534c57b1da72715550525d7184bde029f8238.zip
lantiq: add a hook to make leds work on the secondary usb bus
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37538 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/base-files')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/uci-defaults/01_leds3
1 files changed, 2 insertions, 1 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 1b303184fa..0878de833a 100755
--- a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
@@ -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