[LEDE-DEV] [PATCH] ar71xx: Orders the names of the devices alphabetically.

Arne Zachlod arne at nerdkeller.org
Wed Jan 17 05:16:16 PST 2018


Signed-off-by: Arne Zachlod <arne at nerdkeller.org>
---
 target/linux/ar71xx/base-files/etc/board.d/01_leds | 236 ++++++++++-----------
 .../ar71xx/base-files/etc/board.d/03_gpio_switches |  12 +-
 target/linux/ar71xx/base-files/etc/diag.sh         |  40 ++--
 3 files changed, 144 insertions(+), 144 deletions(-)

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 e5baa90db8..150ef91b48 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -59,6 +59,27 @@ sc450)
 	ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
 	;;
 archer-c25-v1|\
+archer-c58-v1|\
+archer-c59-v1|\
+archer-c60-v1)
+	ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x1E"
+	ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
+	ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
+	ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
+
+	case "$board" in
+	archer-c59-v1)
+		ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
+		;;
+	esac
+	;;
+archer-c5|\
+archer-c7)
+	ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
+	ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
+	ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
+	ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
+	;;
 archer-c7-v4)
 	ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
 	ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
@@ -74,20 +95,6 @@ archer-c7-v4)
 		;;
 	esac
 	;;
-archer-c58-v1|\
-archer-c59-v1|\
-archer-c60-v1)
-	ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x1E"
-	ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
-	ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
-	ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
-
-	case "$board" in
-	archer-c59-v1)
-		ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
-		;;
-	esac
-	;;
 arduino-yun)
 	ucidef_set_led_wlan "wlan" "WLAN" "arduino:blue:wlan" "phy0tpt"
 	ucidef_set_led_usbdev "usb" "USB" "arduino:white:usb" "1-1.1"
@@ -147,22 +154,9 @@ rocket-m-xw)
 	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
 	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
 	;;
-rocket-m-ti)
-	ucidef_set_led_rssi "rssiverylow" "RSSIVERYLOW" "ubnt:green:link1" "wlan0" "1" "100" "0" "13"
-	ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:green:link2" "wlan0" "26" "100" "-25" "13"
-	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
-	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
-	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link5" "wlan0" "76" "100" "-75" "13"
-	ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
-	;;
 bxu2000n-2-a1)
 	ucidef_set_led_wlan "wlan" "WLAN" "bhu:green:wlan" "phy0tpt"
 	;;
-cap324)
-	ucidef_set_led_netdev "lan" "LAN" "pcs:green:lan" "eth0"
-	ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "pcs:amber:wlan" "phy0tpt"
-	ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "pcs:green:wlan" "phy1tpt"
-	;;
 c-55)
 	ucidef_set_led_netdev "lan_green" "LAN_GREEN" "$board:green:lan" "eth0"
 	ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "$board:amber:wlan" "phy0tpt"
@@ -172,6 +166,11 @@ c-60)
 	ucidef_set_led_wlan "wlan1_green" "WLAN1_GREEN" "$board:green:wlan1" "phy0tpt"
 	ucidef_set_led_wlan "wlan2_green" "WLAN2_GREEN" "$board:green:wlan2" "phy1tpt"
 	;;
+cap324)
+	ucidef_set_led_netdev "lan" "LAN" "pcs:green:lan" "eth0"
+	ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "pcs:amber:wlan" "phy0tpt"
+	ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "pcs:green:wlan" "phy1tpt"
+	;;
 cap4200ag)
 	ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
 	ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
@@ -265,76 +264,6 @@ fritz300e)
 	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$board:green:rssi3" "wlan0" "60" "100"
 	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:rssi4" "wlan0" "80" "100"
 	;;
-rb-750)
-	ucidef_set_led_default "act" "act" "rb750:green:act" "1"
-	ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1"
-	ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10"
-	ucidef_set_led_switch "port3" "port3" "rb750:green:port3" "switch0" "0x08"
-	ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
-	ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
-	;;
-rb-750-r2|\
-rb-750p-pbr2|\
-rb-750up-r2)
-	ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
-	ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
-	ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
-	ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
-	ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
-	ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
-	;;
-rb-941-2nd)
-	ucidef_set_led_timer "user" "USR/ACT" "rb:green:user" "1000" "1000"
-	;;
-rb-951ui-2nd|\
-rb-952ui-5ac2nd)
-	ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
-	ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
-	ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
-	ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
-	ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
-	ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
-	ucidef_set_led_wlan "wlan" "WLAN" "rb:blue:wlan" "phy0tpt"
-	;;
-rb-962uigs-5hact2hnt)
-	ucidef_set_led_timer "user" "USER/SFP" "rb:green:user" "1000" "1000"
-	;;
-rb-2011il|\
-rb-2011l|\
-rb-2011uas|\
-rb-2011uas-2hnd|\
-rb-2011uias|\
-rb-2011uias-2hnd)
-	ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
-	ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
-	ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
-	ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
-	ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
-	;;
-rb-lhg-5nd)
-	ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
-	ucidef_set_rssimon "wlan0" "200000" "1"
-	ucidef_set_led_rssi "rssilow" "RSSILOW" "rb:green:rssi0" "wlan0" "1" "100" "0" "13"
-	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "rb:green:rssi1" "wlan0" "20" "100" "-19" "13"
-	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "rb:green:rssi2" "wlan0" "40" "100" "-39" "13"
-	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "rb:green:rssi3" "wlan0" "60" "100" "-59" "13"
-	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "rb:green:rssi4" "wlan0" "80" "100" "-79" "13"
-	;;
-rb-map-2nd)
-	ucidef_set_led_switch "eth1" "WAN" "rb:green:eth1" "switch0" "0x02"
-	ucidef_set_led_switch "eth2" "LAN" "rb:green:eth2" "switch0" "0x04"
-	ucidef_set_led_gpio "poe" "POE" "rb:red:poe_out" "14" "0"
-	ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
-	;;
-rb-mapl-2nd)
-	ucidef_set_led_default "power" "POWER" "rb:green:power" "1"
-	ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
-	ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
-	;;
-rb-wap-2nd)
-	ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
-	ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
-	;;
 dap-2695-a1)
 	ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
 	ucidef_set_led_default "diag" "DIAG" "d-link:red:power" "0"
@@ -388,6 +317,15 @@ dlan-pro-1200-ac)
 	ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
 	ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
 	;;
+esr900)
+	ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
+	ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
+	;;
+esr1750|\
+epg5000)
+	ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan-2g" "phy1tpt"
+	ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan-5g" "phy0tpt"
+	;;
 gl-ar300m)
 	ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
 	;;
@@ -414,15 +352,6 @@ gl-inet)
 	ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
 	ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
 	;;
-esr900)
-	ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
-	ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
-	;;
-esr1750|\
-epg5000)
-	ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan-2g" "phy1tpt"
-	ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan-5g" "phy0tpt"
-	;;
 hiwifi-hc6361)
 	ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
 	ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
@@ -573,12 +502,95 @@ zbt-we1526)
 	ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
 	ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
 	;;
+r6100)
+	ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
+	ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
+	ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
+	;;
+rb-750)
+	ucidef_set_led_default "act" "act" "rb750:green:act" "1"
+	ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1"
+	ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10"
+	ucidef_set_led_switch "port3" "port3" "rb750:green:port3" "switch0" "0x08"
+	ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
+	ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
+	;;
+rb-750-r2|\
+rb-750p-pbr2|\
+rb-750up-r2)
+	ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
+	ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
+	ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
+	ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
+	ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
+	ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
+	;;
+rb-941-2nd)
+	ucidef_set_led_timer "user" "USR/ACT" "rb:green:user" "1000" "1000"
+	;;
+rb-951ui-2nd|\
+rb-952ui-5ac2nd)
+	ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
+	ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
+	ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
+	ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
+	ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
+	ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
+	ucidef_set_led_wlan "wlan" "WLAN" "rb:blue:wlan" "phy0tpt"
+	;;
+rb-962uigs-5hact2hnt)
+	ucidef_set_led_timer "user" "USER/SFP" "rb:green:user" "1000" "1000"
+	;;
+rb-2011il|\
+rb-2011l|\
+rb-2011uas|\
+rb-2011uas-2hnd|\
+rb-2011uias|\
+rb-2011uias-2hnd)
+	ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
+	ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
+	ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
+	ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
+	ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
+	;;
+rb-lhg-5nd)
+	ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
+	ucidef_set_rssimon "wlan0" "200000" "1"
+	ucidef_set_led_rssi "rssilow" "RSSILOW" "rb:green:rssi0" "wlan0" "1" "100" "0" "13"
+	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "rb:green:rssi1" "wlan0" "20" "100" "-19" "13"
+	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "rb:green:rssi2" "wlan0" "40" "100" "-39" "13"
+	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "rb:green:rssi3" "wlan0" "60" "100" "-59" "13"
+	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "rb:green:rssi4" "wlan0" "80" "100" "-79" "13"
+	;;
+rb-map-2nd)
+	ucidef_set_led_switch "eth1" "WAN" "rb:green:eth1" "switch0" "0x02"
+	ucidef_set_led_switch "eth2" "LAN" "rb:green:eth2" "switch0" "0x04"
+	ucidef_set_led_gpio "poe" "POE" "rb:red:poe_out" "14" "0"
+	ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
+	;;
+rb-mapl-2nd)
+	ucidef_set_led_default "power" "POWER" "rb:green:power" "1"
+	ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
+	ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
+	;;
+rb-wap-2nd)
+	ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
+	ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
+	;;
 re450)
 	ucidef_set_led_netdev "lan_data" "LAN Data" "$board:green:lan_data" "eth0" "tx rx"
 	ucidef_set_led_netdev "lan_link" "LAN Link" "$board:green:lan_link" "eth0" "link"
 	ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan2g" "phy1tpt"
 	ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan5g" "phy0tpt"
 	;;
+rocket-m-ti)
+	ucidef_set_led_rssi "rssiverylow" "RSSIVERYLOW" "ubnt:green:link1" "wlan0" "1" "100" "0" "13"
+	ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:green:link2" "wlan0" "26" "100" "-25" "13"
+	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
+	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
+	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link5" "wlan0" "76" "100" "-75" "13"
+	ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
+	;;
 smart-300)
 	ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
 	ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
@@ -743,13 +755,6 @@ tl-wr741nd)
 	ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
 	ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
 	;;
-archer-c5|\
-archer-c7)
-	ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
-	ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
-	ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
-	ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
-	;;
 tl-wpa8630)
 	ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
 	ucidef_set_led_netdev "wlan" "WLAN" "$board:green:wlan" "wlan1"
@@ -847,11 +852,6 @@ wndr3700)
 	ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
 	ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
 	;;
-r6100)
-	ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
-	ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
-	ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
-	;;
 wi2a-ac200i)
 	ucidef_set_led_default "power" "Power (green)" "nokia:green:power" "1"
 	ucidef_set_led_default "wan" "Ethernet LED (green)" "nokia:green:wan" "1"
diff --git a/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches b/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
index 360a45f695..199a6ac08d 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
+++ b/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
@@ -10,18 +10,18 @@ board_config_update
 board=$(board_name)
 
 case "$board" in
-nanostation-m)
-	ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
-	;;
-nanostation-m-xw)
-	ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
-	;;
 cpe210|\
 cpe510|\
 wbs210|\
 wbs510)
 	ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
 	;;
+nanostation-m)
+	ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
+	;;
+nanostation-m-xw)
+	ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
+	;;
 rb-912uag-2hpnd|\
 rb-912uag-5hpnd)
 	ucidef_add_gpio_switch "usb_power_switch" "USB Power Switch" "52" "1"
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 6cbb3576d8..5c60ebd6a8 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -72,6 +72,23 @@ get_status_led() {
 	tl-wr902ac-v1)
 		status_led="$board:green:power"
 		;;
+	archer-c5|\
+	archer-c7|\
+	tl-mr10u|\
+	tl-mr12u|\
+	tl-mr13u|\
+	tl-wdr4300|\
+	tl-wdr4900-v2|\
+	tl-wr703n|\
+	tl-wr710n|\
+	tl-wr720n-v3|\
+	tl-wr802n-v1|\
+	tl-wr810n|\
+	tl-wr810n-v2|\
+	tl-wr940n-v4|\
+	tl-wr941nd-v6)
+		status_led="tp-link:blue:system"
+		;;
 	ap90q|\
 	cpe830|\
 	cpe870|\
@@ -103,9 +120,6 @@ get_status_led() {
 	rocket-m-xw)
 		status_led="ubnt:green:link4"
 		;;
-	rocket-m-ti)
-		status_led="ubnt:green:link6"
-		;;
 	bxu2000n-2-a1)
 		status_led="bhu:green:status"
 		;;
@@ -337,6 +351,9 @@ get_status_led() {
 	sc300m)
 		status_led="$board:blue:power"
 		;;
+	rocket-m-ti)
+		status_led="ubnt:green:link6"
+		;;
 	routerstation|\
 	routerstation-pro)
 		status_led="ubnt:green:rf"
@@ -414,23 +431,6 @@ get_status_led() {
 	tl-wr941nd-v5)
 		status_led="tp-link:green:system"
 		;;
-	archer-c5|\
-	archer-c7|\
-	tl-mr10u|\
-	tl-mr12u|\
-	tl-mr13u|\
-	tl-wdr4300|\
-	tl-wdr4900-v2|\
-	tl-wr703n|\
-	tl-wr710n|\
-	tl-wr720n-v3|\
-	tl-wr802n-v1|\
-	tl-wr810n|\
-	tl-wr810n-v2|\
-	tl-wr940n-v4|\
-	tl-wr941nd-v6)
-		status_led="tp-link:blue:system"
-		;;
 	tl-wr841n-v9)
 		status_led="tp-link:green:qss"
 		;;
-- 
2.15.1




More information about the Lede-dev mailing list