ar71xx: add support for Rockeetech AP531B0
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / diag.sh
index 0d069ec..461d0da 100644 (file)
@@ -8,6 +8,12 @@ get_status_led() {
        local board=$(ar71xx_board_name)
 
        case $board in
+       a40)
+               status_led="a40:green:status"
+               ;;
+       a60)
+               status_led="a60:green:status"
+               ;;
        alfa-nx)
                status_led="alfa:green:led_8"
                ;;
@@ -18,11 +24,14 @@ get_status_led() {
        antminer-s3|\
        antminer-r1|\
        minibox-v1|\
-       som9331)
+       som9331|\
+       sr3200|\
+       tl-wr802n-v2|\
+       xd3200)
                status_led="$board:green:system"
                ;;
        ap132|\
-       ap81|\
+       ap531b0|\
        db120|\
        dr344|\
        tew-632brp|\
@@ -40,18 +49,35 @@ get_status_led() {
        ap135-020)
                status_led="ap135:green:status"
                ;;
-       ap83|\
+       archer-c59-v1|\
+       archer-c60-v1|\
        mr12|\
        mr16|\
-       nbg6616)
+       nbg6616|\
+       sc1750|\
+       sc450|\
+       tl-wpa8630)
                status_led="$board:green:power"
                ;;
+       ap90q|\
+       cpe830|\
+       cpe870|\
+       gl-inet|\
+       gl-mifi|\
+       gl-ar300m)
+               status_led="$board:green:lan"
+               ;;
        ap96)
                status_led="$board:green:led2"
                ;;
        aw-nr580)
                status_led="$board:green:ready"
                ;;
+       bhr-4grv2|\
+       wzr-hp-ag300h|\
+       wzr-hp-g300nh2)
+               status_led="buffalo:red:diag"
+               ;;
        bsb)
                status_led="$board:red:sys"
                ;;
@@ -80,9 +106,18 @@ get_status_led() {
        cap4200ag)
                status_led="senao:green:pwr"
                ;;
-       cf-e316n-v2)
+       cf-e316n-v2|\
+       cf-e520n|\
+       cf-e530n)
                status_led="$board:blue:wan"
                ;;
+       cf-e320n-v2)
+               status_led="$board:blue:wlan"
+               ;;
+       cf-e380ac-v1|\
+       cf-e380ac-v2)
+               status_led="$board:blue:wlan2g"
+               ;;
        cpe510)
                status_led="tp-link:green:link4"
                ;;
@@ -130,6 +165,12 @@ get_status_led() {
        oolite)
                status_led="$board:red:system"
                ;;
+       dw33d)
+               status_led="$board:blue:status"
+               ;;
+       eap120)
+               status_led="$(ar71xx_board_name):green:system"
+               ;;
        eap300v2)
                status_led="engenius:blue:power"
                ;;
@@ -147,9 +188,6 @@ get_status_led() {
        f9k1115v2)
                status_led="belkin:blue:status"
                ;;
-       gl-inet)
-               status_led="$board:green:lan"
-               ;;
        epg5000|\
        esr1750)
                status_led="$board:amber:power"
@@ -214,9 +252,11 @@ get_status_led() {
                ;;
        om2p|\
        om2pv2|\
+       om2pv4|\
        om2p-hs|\
        om2p-hsv2|\
        om2p-hsv3|\
+       om2p-hsv4|\
        om2p-lc)
                status_led="om2p:blue:power"
                ;;
@@ -257,11 +297,16 @@ get_status_led() {
        rb-750)
                status_led="rb750:green:act"
                ;;
+       rb-750-r2|\
+       rb-750up-r2|\
        rb-911g-2hpnd|\
        rb-911g-5hpacd|\
        rb-911g-5hpnd|\
        rb-912uag-2hpnd|\
-       rb-912uag-5hpnd)
+       rb-912uag-5hpnd|\
+       rb-941-2nd|\
+       rb-951ui-2nd|\
+       rb-mapl-2nd)
                status_led="rb:green:user"
                ;;
        rb-951ui-2hnd)
@@ -271,6 +316,10 @@ get_status_led() {
        rb-sxt5n)
                status_led="rb:green:power"
                ;;
+       re450|\
+       sc300m)
+               status_led="$board:blue:power"
+               ;;
        routerstation|\
        routerstation-pro)
                status_led="ubnt:green:rf"
@@ -301,7 +350,8 @@ get_status_led() {
        tl-wa750re)
                status_led="tp-link:orange:re"
                ;;
-       tl-wa850re)
+       tl-wa850re|\
+       tl-wa850re-v2)
                status_led="tp-link:blue:re"
                ;;
        tl-wa860re)
@@ -322,8 +372,10 @@ get_status_led() {
        tl-wr1041n-v2|\
        tl-wr1043nd|\
        tl-wr1043nd-v2|\
+       tl-wr1043nd-v4|\
        tl-wr741nd|\
        tl-wr741nd-v4|\
+       tl-wa801nd-v3|\
        tl-wr841n-v1|\
        tl-wr841n-v7|\
        tl-wr841n-v8|\
@@ -345,7 +397,9 @@ get_status_led() {
        tl-wr703n|\
        tl-wr710n|\
        tl-wr720n-v3|\
+       tl-wr802n-v1|\
        tl-wr810n|\
+       tl-wr940n-v4|\
        tl-wr941nd-v6)
                status_led="tp-link:blue:system"
                ;;
@@ -385,10 +439,6 @@ get_status_led() {
        wlae-ag300n)
                status_led="buffalo:green:status"
                ;;
-       wzr-hp-ag300h|\
-       wzr-hp-g300nh2)
-               status_led="buffalo:red:diag"
-               ;;
        r6100|\
        wndap360|\
        wndr3700|\