aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/diag.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/base-files/etc/diag.sh')
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh91
1 files changed, 46 insertions, 45 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index e649c7ef49..570fba2901 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -6,12 +6,13 @@
get_status_led() {
board=$(board_name)
+ boardname="${board##*,}"
case $board in
3g150b|\
3g300m|\
w150m)
- status_led="$board:blue:ap"
+ status_led="$boardname:blue:ap"
;;
3g-6200n|\
ar670w|\
@@ -46,10 +47,10 @@ get_status_led() {
x8|\
xdxrn502j|\
wn3000rpv3)
- status_led="$board:green:power"
+ status_led="$boardname:green:power"
;;
3g-6200nl)
- status_led="$board:green:internet"
+ status_led="$boardname:green:internet"
;;
a5-v11|\
cs-qr10|\
@@ -60,11 +61,11 @@ get_status_led() {
mpr-a1|\
mpr-a2|\
mzk-ex750np)
- status_led="$board:red:power"
+ status_led="$boardname:red:power"
;;
ai-br100|\
ht-tm02)
- status_led="$board:blue:wlan"
+ status_led="$boardname:blue:wlan"
;;
all0239-3g|\
dcs-930|\
@@ -88,7 +89,7 @@ get_status_led() {
v11st-fe|\
wmr-300|\
zbt-wg2626)
- status_led="$board:green:status"
+ status_led="$boardname:green:status"
;;
asl26555-8M|\
asl26555-16M)
@@ -97,28 +98,28 @@ get_status_led() {
atp-52b|\
ew1200|\
ip2202)
- status_led="$board:green:run"
+ status_led="$boardname:green:run"
;;
awapn2403|\
dir-645|\
sk-wb8|\
wrh-300cr)
- status_led="$board:green:wps"
+ status_led="$boardname:green:wps"
;;
c108)
- status_led="$board:green:lan"
+ status_led="$boardname:green:lan"
;;
cf-wr800n|\
psg1208)
- status_led="$board:white:wps"
+ status_led="$boardname:white:wps"
;;
psg1218a|\
psg1218b)
- status_led="$board:yellow:status"
+ status_led="$boardname:yellow:status"
;;
cy-swr1100|\
w502u)
- status_led="$board:blue:wps"
+ status_led="$boardname:blue:wps"
;;
c20|\
d240|\
@@ -137,22 +138,22 @@ get_status_led() {
y1|\
y1s|\
youku-yk1)
- status_led="$board:blue:power"
+ status_led="$boardname:blue:power"
;;
db-wrt01|\
esr-9753|\
pbr-d1)
- status_led="$board:orange:power"
+ status_led="$boardname:orange:power"
;;
f5d8235-v1)
- status_led="$board:blue:wired"
+ status_led="$boardname:blue:wired"
;;
f5d8235-v2)
- status_led="$board:blue:router"
+ status_led="$boardname:blue:router"
;;
f7c027|\
timecloud)
- status_led="$board:orange:status"
+ status_led="$boardname:orange:status"
;;
hc5*61|\
hc5661a|\
@@ -160,58 +161,58 @@ get_status_led() {
jhr-n926r|\
mlw221|\
mlwg2)
- status_led="$board:blue:system"
+ status_led="$boardname:blue:system"
;;
hc5962)
- status_led="$board:white:status"
+ status_led="$boardname:white:status"
;;
k2p|\
m3|\
miwifi-nano)
- status_led="$board:blue:status"
+ status_led="$boardname:blue:status"
;;
linkits7688)
[ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
;;
m2m)
- status_led="$board:blue:wifi"
+ status_led="$boardname:blue:wifi"
;;
gl-mt300n-v2)
- status_led="$board:red:wlan"
+ status_led="$boardname:red:wlan"
;;
m4-4M|\
m4-8M)
status_led="m4:blue:status"
;;
mir3g)
- status_led="$board:yellow:status"
+ status_led="$boardname:yellow:status"
;;
miwifi-mini|\
zte-q7)
- status_led="$board:red:status"
+ status_led="$boardname:red:status"
;;
mr-102n)
- status_led="$board:amber:status"
+ status_led="$boardname:amber:status"
;;
mr200)
- status_led="$board:white:power"
+ status_led="$boardname:white:power"
;;
nw718)
- status_led="$board:amber:cpu"
+ status_led="$boardname:amber:cpu"
;;
newifi-d1)
- status_led="$board:blue:status"
+ status_led="$boardname:blue:status"
;;
omega2| \
omega2p)
- status_led="$board:amber:system"
+ status_led="$boardname:amber:system"
;;
oy-0001|\
sl-r7205)
- status_led="$board:green:wifi"
+ status_led="$boardname:green:wifi"
;;
psr-680w)
- status_led="$board:red:wan"
+ status_led="$boardname:red:wan"
;;
px-4885-4M|\
px-4885-8M)
@@ -221,7 +222,7 @@ get_status_led() {
whr-1166d|\
whr-600d|\
widora-neo)
- status_led="$board:orange:wifi"
+ status_led="$boardname:orange:wifi"
;;
mzk-ex300np|\
rt-n10-plus|\
@@ -231,13 +232,13 @@ get_status_led() {
ur-326n4g|\
ur-336un|\
wf-2881)
- status_led="$board:green:wps"
+ status_led="$boardname:green:wps"
;;
rb750gr3)
- status_led="$board:blue:pwr"
+ status_led="$boardname:blue:pwr"
;;
sap-g3200u3)
- status_led="$board:green:usb"
+ status_led="$boardname:green:usb"
;;
u25awf-h1)
status_led="u25awf:red:wifi"
@@ -249,43 +250,43 @@ get_status_led() {
status_led="u7628-01:green:power"
;;
v22rw-2x2)
- status_led="$board:green:security"
+ status_led="$boardname:green:security"
;;
vocore-8M|\
vocore-16M)
status_led="vocore:green:status"
;;
vocore2)
- status_led="$board:fuchsia:status"
+ status_led="$boardname:fuchsia:status"
;;
vocore2lite)
- status_led="$board:green:status"
+ status_led="$boardname:green:status"
;;
w306r-v20|\
witi|\
zbt-wr8305rt)
- status_led="$board:green:sys"
+ status_led="$boardname:green:sys"
;;
wcr-1166ds|\
whr-300hp2|\
wsr-1166|\
wsr-600)
- status_led="$board:green:power"
+ status_led="$boardname:green:power"
;;
wcr-150gn|\
wl-351)
- status_led="$board:amber:power"
+ status_led="$boardname:amber:power"
;;
whr-g300n|\
wlr-6000|\
zbt-we2026)
- status_led="$board:red:power"
+ status_led="$boardname:red:power"
;;
wzr-agl300nh)
- status_led="$board:green:router"
+ status_led="$boardname:green:router"
;;
wizfi630a)
- status_led="$board::run"
+ status_led="$boardname::run"
;;
wr512-3gn-4M|\
wr512-3gn-8M)
@@ -301,7 +302,7 @@ get_status_led() {
status_led="wt3020:blue:power"
;;
zbt-cpe102)
- status_led="$board:green:4g-0"
+ status_led="$boardname:green:4g-0"
;;
zbt-we826-16M|\
zbt-we826-32M)