ramips: add support for the GnuBee Personal Cloud One
[openwrt/staging/mkresin.git] / target / linux / ramips / base-files / etc / diag.sh
index e5b4b5992d4d6b2eea998e9268f92456ef205a3c..f5c0e835c01cf2baf15ba43ab84d385d7d5a0beb 100644 (file)
@@ -1,11 +1,11 @@
 #!/bin/sh
 # Copyright (C) 2010-2013 OpenWrt.org
 
+. /lib/functions.sh
 . /lib/functions/leds.sh
-. /lib/ramips.sh
 
 get_status_led() {
-       board=$(ramips_board_name)
+       board=$(board_name)
 
        case $board in
        3g150b|\
@@ -24,6 +24,7 @@ get_status_led() {
        e1700|\
        ex3700|\
        fonera20n|\
+       kn|\
        kn_rc|\
        kn_rf|\
        kng_rc|\
@@ -34,6 +35,8 @@ get_status_led() {
        nbg-419n2|\
        pwh2004|\
        r6220|\
+       tl-wr840n-v4|\
+       tl-wr841n-v13|\
        vr500|\
        wnce2001|\
        wndr3700v5|\
@@ -58,7 +61,10 @@ get_status_led() {
        wn3000rpv3)
                status_led="$board:red:power"
                ;;
-       ac1200pro|\
+       ai-br100|\
+       ht-tm02)
+               status_led="$board:blue:wlan"
+               ;;
        all0239-3g|\
        dcs-930|\
        dir-300-b1|\
@@ -71,6 +77,7 @@ get_status_led() {
        dir-620-a1|\
        dir-620-d1|\
        dwr-512-b|\
+       gb-pc1|\
        hpm|\
        hw550-3g|\
        mac1200rv2|\
@@ -79,14 +86,9 @@ get_status_led() {
        rut5xx|\
        v11st-fe|\
        wmr-300|\
-       zbt-wg2626|\
-       zbt-wg3526)
+       zbt-wg2626)
                status_led="$board:green:status"
                ;;
-       ai-br100|\
-       ht-tm02)
-               status_led="$board:blue:wlan"
-               ;;
        asl26555-8M|\
        asl26555-16M)
                status_led="asl26555:green:power"
@@ -118,6 +120,8 @@ get_status_led() {
        dap-1350|\
        na930|\
        pbr-m1|\
+       re350-v1|\
+       rt-ac51u|\
        rt-n13u|\
        rt-n14u|\
        rt-n15|\
@@ -155,6 +159,11 @@ get_status_led() {
        hc5962)
                status_led="$board:white:status"
                ;;
+       k2p|\
+       m3|\
+       miwifi-nano)
+               status_led="$board:blue:status"
+               ;;
        linkits7688| \
        linkits7688d)
                [ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
@@ -162,9 +171,8 @@ get_status_led() {
        m2m)
                status_led="$board:blue:wifi"
                ;;
-       m3|\
-       miwifi-nano)
-               status_led="$board:blue:status"
+       gl-mt300n-v2)
+               status_led="$board:red:wlan"
                ;;
        m4-4M|\
        m4-8M)
@@ -191,8 +199,7 @@ get_status_led() {
                status_led="$board:amber:system"
                ;;
        oy-0001|\
-       sl-r7205|\
-       zbt-we826)
+       sl-r7205)
                status_led="$board:green:wifi"
                ;;
        psr-680w)
@@ -210,6 +217,7 @@ get_status_led() {
                ;;
        mzk-ex300np|\
        rt-n10-plus|\
+       tew-638apb-v2|\
        tew-691gr|\
        tew-692gr|\
        ur-326n4g|\
@@ -275,6 +283,14 @@ get_status_led() {
        zbt-cpe102)
                status_led="$board:green:4g-0"
                ;;
+       zbt-we826-16M|\
+       zbt-we826-32M)
+               status_led="zbt-we826:green:power"
+               ;;
+       zbt-wg3526-16M|\
+       zbt-wg3526-32M)
+               status_led="zbt-wg3526:green:status"
+               ;;
        esac
 }