diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2016-11-07 18:10:09 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-11-08 11:17:10 +0100 |
commit | b5638bb64e790350ca0203e7cff60a10766dae20 (patch) | |
tree | fe2425efc7af09f2501dcabe7439e7a46692c614 /target/linux/apm821xx/base-files | |
parent | 524d7a7cdeb12b2061dfadf91e12f3355d908f19 (diff) | |
download | mtk-20170518-b5638bb64e790350ca0203e7cff60a10766dae20.zip mtk-20170518-b5638bb64e790350ca0203e7cff60a10766dae20.tar.gz mtk-20170518-b5638bb64e790350ca0203e7cff60a10766dae20.tar.bz2 |
apm821xx: redo WAN green and yellow LEDs
Because the WAN port is handled by the internal AR8327N switch, the
device should use swconfig_leds trigger to handle the link activity
of the WAN LED. This has the added bonus that the WAN LED will now
go dark if there's no ethernet cable connected to the WAN port.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/base-files')
-rwxr-xr-x | target/linux/apm821xx/base-files/etc/board.d/01_leds | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/apm821xx/base-files/etc/board.d/01_leds b/target/linux/apm821xx/base-files/etc/board.d/01_leds index 80a22b8..38cfbdc 100755 --- a/target/linux/apm821xx/base-files/etc/board.d/01_leds +++ b/target/linux/apm821xx/base-files/etc/board.d/01_leds @@ -22,7 +22,8 @@ mbl) wndr4700) ucidef_set_led_ide "sata" "SATA" "wndr4700:green:hd" - ucidef_set_led_netdev "wan" "WAN (green)" "wndr4700:green:wan" "eth0.2" + ucidef_set_led_switch "wan_green" "WAN (green)" "wndr4700:green:wan" "switch0" "0x20" + ucidef_set_led_netdev "wan_yellow" "WAN (yellow)" "wndr4700:yellow:wan" "eth0.2" "tx rx" ucidef_set_led_usbport "usb3" "USB3" "wndr4700:blue:usb" "usb2-port1" "usb2-port2" "usb3-port1" "usb3-port2" ucidef_set_led_wlan "wlan2g" "WLAN2G" "wndr4700:blue:wlan" "phy0tpt" ucidef_set_led_wlan "wlan5g" "WLAN5G" "wndr4700:blue:wlan" "phy1tpt" |