ar71xx: add support for Fritz!WLAN Repeater 450E
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / board.d / 01_leds
index 520a5cdb05c642e93d1b6d834639d246aebc9f70..2de8472e27b99c1dd280b88acff4357baee40227 100755 (executable)
@@ -4,11 +4,10 @@
 #
 
 . /lib/functions/uci-defaults.sh
-. /lib/ar71xx.sh
 
 board_config_update
 
-board=$(ar71xx_board_name)
+board=$(board_name)
 
 case "$board" in
 a40)
@@ -49,31 +48,10 @@ antrouter-r1)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
        ucidef_set_led_default "btc" "BTC" "$board:green:btc" "0"
        ;;
-ap531b0|\
-sc1750|\
-sc450)
+ap121f)
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
        ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
        ;;
-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"
-       ;;
-db120)
-       ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
-       ;;
 ap147-010)
        ucidef_set_led_netdev "wan" "WAN" "ap147:green:wan" "eth1"
        ucidef_set_led_switch "lan1" "LAN1" "ap147:green:lan1" "switch0" "0x10"
@@ -86,7 +64,9 @@ ap90q|\
 cpe505n|\
 cpe830|\
 cpe870|\
-dr531)
+dr531|\
+e600g-v2|\
+e600gac-v2)
        ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
        ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
 
@@ -108,6 +88,74 @@ dr531)
                ;;
        esac
        ;;
+ap531b0|\
+gl-usb150|\
+sc1750|\
+sc450)
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
+       ;;
+ap91-5g|\
+n5q)
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
+       ucidef_set_rssimon "wlan0" "200000" "1"
+       ucidef_set_led_rssi "signal1" "SIGNAL1" "$board:red:signal1" "wlan0" "1" "100"
+       ucidef_set_led_rssi "signal2" "SIGNAL2" "$board:orange:signal2" "wlan0" "25" "100"
+       ucidef_set_led_rssi "signal3" "SIGNAL3" "$board:green:signal3" "wlan0" "50" "100"
+       ucidef_set_led_rssi "signal4" "SIGNAL4" "$board:green:signal4" "wlan0" "75" "100"
+
+       case "$board" in
+       n5q)
+               ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
+               ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
+               ;;
+       esac
+       ;;
+archer-c25-v1)
+       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"
+       ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
+       ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
+       ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
+       ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
+       ;;
+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-c58-v1|\
+archer-c59-v1|\
+archer-c60-v1|\
+archer-c60-v2)
+       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-c7-v4)
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
+       ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
+       ucidef_set_led_switch "wan" "WAN" "$board:green:wan" "switch0" "0x02"
+       ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan4" "switch0" "0x04"
+       ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan3" "switch0" "0x08"
+       ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan2" "switch0" "0x10"
+       ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan1" "switch0" "0x20"
+       ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1"
+       ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "2-1"
+       ;;
+arduino-yun)
+       ucidef_set_led_wlan "wlan" "WLAN" "arduino:blue:wlan" "phy0tpt"
+       ucidef_set_led_usbdev "usb" "USB" "arduino:white:usb" "1-1.1"
+       ;;
 bhr-4grv2)
        ucidef_set_led_default "power" "POWER" "buffalo:green:power" "1"
        ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
@@ -116,24 +164,16 @@ bsb)
        ucidef_set_led_default "sys" "SYS" "$board:red:sys" "1"
        ;;
 bullet-m|\
+loco-m-xw|\
 nanostation-m|\
-rocket-m|\
-rocket-m-xw|\
 nanostation-m-xw|\
-loco-m-xw)
+rocket-m|\
+rocket-m-xw)
        ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" "0" "13"
        ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" "-25" "13"
        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"
        ;;
@@ -171,11 +211,24 @@ cf-e320n-v2)
        ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1"
        ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
        ;;
+cf-e355ac-v1|\
+cf-e355ac-v2|\
+cf-e375ac|\
 cf-e380ac-v1|\
-cf-e380ac-v2)
-       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
+cf-e380ac-v2|\
+cf-e385ac)
        ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
        ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:red:wlan5g" "phy0tpt"
+
+       case "$board" in
+       cf-e375ac|\
+       cf-e385ac)
+               ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x04"
+               ;;
+       *)
+               ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
+               ;;
+       esac
        ;;
 cf-e520n|\
 cf-e530n)
@@ -205,6 +258,12 @@ cr5000)
        ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
        ucidef_set_led_usbdev "usb" "USB" "pcs:white:wps" "1-1"
        ;;
+db120)
+       ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
+       ;;
+dr344)
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
+       ;;
 dragino2)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
        ucidef_set_led_netdev "lan" "LAN" "$board:red:lan" "eth0"
@@ -220,67 +279,32 @@ eap300v2)
        ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0"
        ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt"
        ;;
+ens202ext)
+       ucidef_set_rssimon "wlan0" "200000" "1"
+       ucidef_set_led_rssi "rssilow" "RSSILOW" "engenius:amber:wlan1" "wlan0" "1"  "100" "0" "13"
+       ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "engenius:red:wlan2" "wlan0" "25" "100" "-39" "13"
+       ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "engenius:amber:wlan3" "wlan0" "50" "100" "-59" "13"
+       ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "engenius:green:wlan4" "wlan0" "75" "100" "-79" "13"
+       ;;
 f9k1115v2)
        ucidef_set_led_usbdev "usb2" "USB2" "belkin:green:usb2" "1-1"
        ;;
-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-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-2011uias|\
-rb-2011uas-2hnd|\
-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"
+fritz300e)
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
        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-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"
+       ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:green:rssi0" "wlan0" "1" "100"
+       ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$board:green:rssi1" "wlan0" "20" "100"
+       ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$board:green:rssi2" "wlan0" "40" "100"
+       ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$board:green:rssi3" "wlan0" "60" "100"
+       ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:rssi4" "wlan0" "80" "100"
+       ;;
+dap-1330-a1)
+       ucidef_set_rssimon "wlan0" "2000000" "2"
+       ucidef_set_led_rssi "wifi-low" "wifi-low" "d-link:red:wifi" "wlan0" "1" "29"
+       ucidef_set_led_rssi "wifi-medium" "wifi-medium" "d-link:green:wifi" "wlan0" "30" "100"
+       ucidef_set_led_rssi "wifi-high" "wifi-high" "d-link:green:signal1" "wlan0" "50" "100"
+       ucidef_set_led_rssi "wifi-max" "wifi-max" "d-link:green:signal2" "wlan0" "70" "100"
        ;;
 dap-2695-a1)
        ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
@@ -335,16 +359,46 @@ 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"
        ;;
+e1700ac-v2)
+       ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
+       ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
+       ;;
+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"
+       ;;
+fritz4020)
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
+       ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
+       ;;
+fritz450e)
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
+       ;;
 gl-ar300m)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
        ;;
+gl-ar750)
+       ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:white:wlan2g" "phy1tpt"
+       ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:white:wlan5g" "phy0tpt"
+       ;;
 gl-mifi)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
        ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
        ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
        ucidef_set_led_netdev "3gnet" "3GNET" "$board:green:net" "3g-wan"
        ;;
-gl-ar150|\
+gl-ar150)
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:orange:wlan" "phy0tpt"
+       ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
+       ;;
 gl-ar300)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt"
        ;;
@@ -357,15 +411,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"
@@ -377,6 +422,18 @@ hornet-ub-x2)
        ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
        ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
        ;;
+koala)
+       ucidef_set_led_default "power" "POWER" "$board:green:power" "1"
+       ucidef_set_led_wlan "wlan2g" "WLAN 2.4GHz" "$board:yellow:wlan2" "phy1tpt"
+       ucidef_set_led_wlan "wlan5g" "WLAN 5GHz" "$board:red:wlan58" "phy0tpt"
+       ;;
+lan-turtle)
+       ucidef_set_led_netdev "wan" "WAN" "$board:orange:system" "eth1"
+       ;;
+lbe-m5)
+       ucidef_set_led_netdev "lan" "LAN" "ubnt:green:lan" "eth0"
+       ucidef_set_led_wlan "wlan" "WLAN" "ubnt:green:wlan" "phy0tpt"
+       ;;
 mc-mac1200r)
        ucidef_set_led_wlan "wlan2g" "WLAN2G" "mercury:green:wlan2g" "phy1tpt"
        ucidef_set_led_wlan "wlan5g" "WLAN5G" "mercury:green:wlan5g" "phy0tpt"
@@ -458,13 +515,13 @@ nbg6716)
        ucidef_set_led_usbdev "usb2" "USB2" "$board:white:usb2" "2-1"
        ;;
 om2p|\
-om2pv2|\
-om2pv4|\
 om2p-hs|\
 om2p-hsv2|\
 om2p-hsv3|\
 om2p-hsv4|\
-om2p-lc)
+om2p-lc|\
+om2pv2|\
+om2pv4)
        ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
        ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
        ucidef_set_led_default "wlan-red" "WLAN (red)" "om2p:red:wifi" "0"
@@ -507,7 +564,14 @@ pqi-air-pen)
 qihoo-c301)
        ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
        ;;
+r36a)
+       ucidef_set_led_netdev "lan" "LAN" "$board:blue:lan" "eth0"
+       ucidef_set_led_usbdev "usb" "USB" "$board:blue:usb" "1-1"
+       ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
+       ;;
 r602n|\
+t830|\
 zbt-we1526)
        ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
        ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
@@ -515,13 +579,120 @@ zbt-we1526)
        ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
        ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
        ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
+
+       case "$board" in
+       t830)
+               ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
+               ;;
+       esac
+       ;;
+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-911-2hn|\
+rb-911-5hn)
+       ucidef_set_led_netdev "eth" "ETH" "rb:green:eth" "eth0"
+       ;;
+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-2011ils|\
+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"
+       ;;
+re355|\
 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"
        ;;
+rme-eg200)
+        ucidef_set_led_netdev "wan" "WAN" "eg200:red:eth0" "eth0"
+        ucidef_set_led_wlan "wlan" "WLAN" "eg200:red:wlan" "phy0tpt"
+        ucidef_set_led_oneshot "modbus" "Modbus" "eg200:red:modbus" "100" "33"
+        ucidef_set_led_default "etactica" "etactica" "eg200:red:etactica" "ignore"
+        ;;
+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"
+       ;;
+rut900)
+       ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
+       ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
+       ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
+       ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
+       ;;
 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"
@@ -597,8 +768,8 @@ tl-wr941nd-v5)
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
 
        case "$board" in
-       tl-wr842n-v2|\
-       tl-mr3420-v2)
+       tl-mr3420-v2|\
+       tl-wr842n-v2)
                ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
                ;;
        esac
@@ -643,11 +814,12 @@ tl-wa850re-v2)
        ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
        ;;
 tl-wa701nd-v2|\
-tl-wa860re|\
-tl-wa830re-v2|\
 tl-wa801nd-v2|\
+tl-wa830re-v2|\
+tl-wa860re|\
 tl-wa901nd-v3|\
-tl-wa901nd-v4)
+tl-wa901nd-v4|\
+tl-wa901nd-v5)
        ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
        ;;
@@ -685,24 +857,39 @@ 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"
        ucidef_set_led_netdev "wlan5" "WLAN5" "$board:green:wlan5" "wlan0"
        ;;
+tl-wr740n-v6|\
+tl-wr841n-v9|\
+tl-wr841n-v11|\
+tl-wr842n-v3)
+       ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+       ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
+       ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
+       ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
+       ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
+       ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+
+       case "$board" in
+       tl-wr842n-v3)
+               ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
+               ;;
+       esac
+       ;;
 tl-wr802n-v1)
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt"
        ;;
 tl-wr802n-v2)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:green:system" "phy0tpt"
        ;;
+tl-wr902ac-v1)
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
+       ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
+       ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
+       ;;
 tl-wr940n-v4|\
 tl-wr941nd-v6)
        ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
@@ -718,35 +905,38 @@ tl-wr840n-v3)
        ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x1E"
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
        ;;
-tl-wr841n-v9|\
-tl-wr841n-v11|\
-tl-wr842n-v3)
-       ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
-       ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
-       ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
-       ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
-       ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
-       ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
-
-       case "$board" in
-       tl-wr842n-v3)
-               ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
-               ;;
-       esac
+tl-wr940n-v6)
+       ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
+       ;;
+tl-wr942n-v1)
+       ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x04"
+       ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
+       ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x10"
+       ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
+       ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
+       ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1.2"
+       ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "1-1.1"
        ;;
 tl-wr1043nd|\
 tl-wr1043nd-v2)
        ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
        ;;
+tl-wr1043n-v5|\
 tl-wr1043nd-v4)
-       ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
        ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x20"
        ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
        ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
        ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
        ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
+
+       case "$board" in
+       tl-wr1043nd-v4)
+               ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
+               ;;
+       esac
        ;;
 tl-wr2543n)
        ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
@@ -760,6 +950,10 @@ tube2h)
        ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
        ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
        ;;
+wam250)
+       ucidef_set_led_netdev "lan" "LAN" "$board:white:lan" "eth0"
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:white:wlan" "phy0tpt"
+       ;;
 wndap360)
        ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
        ;;
@@ -767,14 +961,16 @@ 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"
+       ucidef_set_led_wlan "wlan5g" "WLAN" "nokia:green:wlan-5g" "phy0tpt"
+       ucidef_set_led_wlan "wlan2g" "WLAN" "nokia:green:wlan-2g" "phy1tpt"
        ;;
 wndr3700v4|\
 wndr4300)
-       ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
+       ucidef_set_led_switch "wan-green" "WAN (green)" "netgear:green:wan" "switch0" "0x20" "0x08"
+       ucidef_set_led_switch "wan-amber" "WAN (amber)" "netgear:amber:wan" "switch0" "0x20" "0x06"
        ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
        ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
        ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
@@ -788,6 +984,9 @@ whr-hp-gn)
        ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
        ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
        ;;
+wifi-pineapple-nano)
+       ucidef_set_led_wlan "wlan0" "WLAN0" "$board:blue:system" "phy0tpt"
+       ;;
 wlae-ag300n)
        ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
        ;;