From: Felix Fietkau Date: Sat, 5 Mar 2016 09:45:10 +0000 (+0000) Subject: ar71xx: WNR2000v3: add speed_mask to Ethernet port LED initialization X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=94b8a6b5cfed94bea8b5d1baacceb3280bab8eac;p=openwrt%2Fstaging%2Fblocktrron.git ar71xx: WNR2000v3: add speed_mask to Ethernet port LED initialization This patch add speed_mask parameter to Ethernet port LED initialization during system startup. LEDs are configured to show amber light for 10 Mbps link and green for 100 Mbps as described on device label. Signed-off-by: Michal Cieslakiewicz SVN-Revision: 48923 --- diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 737442221d..37ee3d32a7 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -680,14 +680,14 @@ wnr2000-v3) ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0" ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0" ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0" - ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" - ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" - ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" - ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" - ucidef_set_led_default "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "0" - ucidef_set_led_default "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "0" - ucidef_set_led_default "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "0" - ucidef_set_led_default "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "0" + ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04" + ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04" + ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04" + ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04" + ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02" + ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02" + ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02" + ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02" ;; wnr2000-v4)