diff options
author | John Crispin <john@openwrt.org> | 2013-07-25 20:29:01 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-07-25 20:29:01 +0000 |
commit | 32f7ae4ce63c690176c57c4ff5e00ca0b294d0ee (patch) | |
tree | 4881acf0c5584aae37354e81dacd3ec4f1c14e4e /target/linux/lantiq/base-files | |
parent | 4036be440815204cef12999a581b58dc5be28ebc (diff) | |
download | mtk-20170518-32f7ae4ce63c690176c57c4ff5e00ca0b294d0ee.zip mtk-20170518-32f7ae4ce63c690176c57c4ff5e00ca0b294d0ee.tar.gz mtk-20170518-32f7ae4ce63c690176c57c4ff5e00ca0b294d0ee.tar.bz2 |
lantiq: add a hook to make leds work on the secondary usb bus
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37538
Diffstat (limited to 'target/linux/lantiq/base-files')
-rwxr-xr-x | target/linux/lantiq/base-files/etc/uci-defaults/01_leds | 3 |
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 1b30318..0878de8 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 |