projects
/
openwrt
/
staging
/
stintel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: add support for Kimax U25AWF-H1
[openwrt/staging/stintel.git]
/
target
/
linux
/
ramips
/
base-files
/
etc
/
diag.sh
diff --git
a/target/linux/ramips/base-files/etc/diag.sh
b/target/linux/ramips/base-files/etc/diag.sh
index 54961371f86caa57384eaaef5201c59a6728ceaa..4411babbf929d239ea2a01e52218a6e41e684e26 100644
(file)
--- a/
target/linux/ramips/base-files/etc/diag.sh
+++ b/
target/linux/ramips/base-files/etc/diag.sh
@@
-1,11
+1,11
@@
#!/bin/sh
# Copyright (C) 2010-2013 OpenWrt.org
#!/bin/sh
# Copyright (C) 2010-2013 OpenWrt.org
+. /lib/functions.sh
. /lib/functions/leds.sh
. /lib/functions/leds.sh
-. /lib/ramips.sh
get_status_led() {
get_status_led() {
- board=$(
ramips_
board_name)
+ board=$(board_name)
case $board in
3g150b|\
case $board in
3g150b|\
@@
-16,14
+16,16
@@
get_status_led() {
3g-6200n|\
ar670w|\
ar725w|\
3g-6200n|\
ar670w|\
ar725w|\
- asl26555|\
- br-6425|\
br-6475nd|\
c50|\
dch-m225|\
dir-860l-b1|\
e1700|\
br-6475nd|\
c50|\
dch-m225|\
dir-860l-b1|\
e1700|\
+ ex2700|\
+ ex3700|\
fonera20n|\
fonera20n|\
+ hg255d|\
+ kn|\
kn_rc|\
kn_rf|\
kng_rc|\
kn_rc|\
kn_rf|\
kng_rc|\
@@
-33,12
+35,16
@@
get_status_led() {
nbg-419n|\
nbg-419n2|\
pwh2004|\
nbg-419n|\
nbg-419n2|\
pwh2004|\
+ r6220|\
+ tl-wr840n-v4|\
+ tl-wr841n-v13|\
vr500|\
wnce2001|\
wndr3700v5|\
x5|\
x8|\
vr500|\
wnce2001|\
wndr3700v5|\
x5|\
x8|\
- xdxrn502j)
+ xdxrn502j|\
+ wn3000rpv3)
status_led="$board:green:power"
;;
3g-6200nl)
status_led="$board:green:power"
;;
3g-6200nl)
@@
-48,16
+54,17
@@
get_status_led() {
cs-qr10|\
d105|\
dcs-930l-b1|\
cs-qr10|\
d105|\
dcs-930l-b1|\
- ex2700|\
hlk-rm04|\
jhr-n825r|\
mpr-a1|\
mpr-a2|\
hlk-rm04|\
jhr-n825r|\
mpr-a1|\
mpr-a2|\
- mzk-ex750np|\
- wn3000rpv3)
+ mzk-ex750np)
status_led="$board:red:power"
;;
status_led="$board:red:power"
;;
- ac1200pro|\
+ ai-br100|\
+ ht-tm02)
+ status_led="$board:blue:wlan"
+ ;;
all0239-3g|\
dcs-930|\
dir-300-b1|\
all0239-3g|\
dcs-930|\
dir-300-b1|\
@@
-70,6
+77,7
@@
get_status_led() {
dir-620-a1|\
dir-620-d1|\
dwr-512-b|\
dir-620-a1|\
dir-620-d1|\
dwr-512-b|\
+ gb-pc1|\
hpm|\
hw550-3g|\
mac1200rv2|\
hpm|\
hw550-3g|\
mac1200rv2|\
@@
-77,15
+85,13
@@
get_status_led() {
mofi3500-3gn|\
rut5xx|\
v11st-fe|\
mofi3500-3gn|\
rut5xx|\
v11st-fe|\
- vocore|\
wmr-300|\
wmr-300|\
- zbt-wg2626|\
- zbt-wg3526)
+ zbt-wg2626)
status_led="$board:green:status"
;;
status_led="$board:green:status"
;;
- a
i-br100
|\
-
ht-tm02
)
- status_led="
$board:blue:wlan
"
+ a
sl26555-8M
|\
+
asl26555-16M
)
+ status_led="
asl26555:green:power
"
;;
atp-52b|\
ew1200|\
;;
atp-52b|\
ew1200|\
@@
-98,21
+104,28
@@
get_status_led() {
wrh-300cr)
status_led="$board:green:wps"
;;
wrh-300cr)
status_led="$board:green:wps"
;;
+ c108)
+ status_led="$board:green:lan"
+ ;;
cf-wr800n|\
psg1208)
status_led="$board:white:wps"
;;
cf-wr800n|\
psg1208)
status_led="$board:white:wps"
;;
- psg1218)
+ psg1218a|\
+ psg1218b)
status_led="$board:yellow:status"
;;
cy-swr1100|\
w502u)
status_led="$board:blue:wps"
;;
status_led="$board:yellow:status"
;;
cy-swr1100|\
w502u)
status_led="$board:blue:wps"
;;
+ c20|\
d240|\
dap-1350|\
na930|\
pbr-m1|\
d240|\
dap-1350|\
na930|\
pbr-m1|\
+ re350-v1|\
+ rt-ac51u|\
rt-n13u|\
rt-n14u|\
rt-n15|\
rt-n13u|\
rt-n14u|\
rt-n15|\
@@
-120,7
+133,6
@@
get_status_led() {
wl-330n|\
wl-330n3g|\
wli-tx4-ag300n|\
wl-330n|\
wl-330n3g|\
wli-tx4-ag300n|\
- wt3020|\
y1|\
y1s)
status_led="$board:blue:power"
y1|\
y1s)
status_led="$board:blue:power"
@@
-151,6
+163,11
@@
get_status_led() {
hc5962)
status_led="$board:white:status"
;;
hc5962)
status_led="$board:white:status"
;;
+ k2p|\
+ m3|\
+ miwifi-nano)
+ status_led="$board:blue:status"
+ ;;
linkits7688| \
linkits7688d)
[ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
linkits7688| \
linkits7688d)
[ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
@@
-158,10
+175,15
@@
get_status_led() {
m2m)
status_led="$board:blue:wifi"
;;
m2m)
status_led="$board:blue:wifi"
;;
- m3|\
- m4|\
- miwifi-nano)
- status_led="$board:blue:status"
+ gl-mt300n-v2)
+ status_led="$board:red:wlan"
+ ;;
+ m4-4M|\
+ m4-8M)
+ status_led="m4:blue:status"
+ ;;
+ mir3g)
+ status_led="$board:yellow:status"
;;
miwifi-mini|\
zte-q7)
;;
miwifi-mini|\
zte-q7)
@@
-184,14
+206,16
@@
get_status_led() {
status_led="$board:amber:system"
;;
oy-0001|\
status_led="$board:amber:system"
;;
oy-0001|\
- sl-r7205|\
- zbt-we826)
+ sl-r7205)
status_led="$board:green:wifi"
;;
psr-680w)
status_led="$board:red:wan"
;;
status_led="$board:green:wifi"
;;
psr-680w)
status_led="$board:red:wan"
;;
- px-4885|\
+ px-4885-4M|\
+ px-4885-8M)
+ status_led="px-4885:orange:wifi"
+ ;;
re6500|\
whr-1166d|\
whr-600d|\
re6500|\
whr-1166d|\
whr-600d|\
@@
-200,12
+224,12
@@
get_status_led() {
;;
mzk-ex300np|\
rt-n10-plus|\
;;
mzk-ex300np|\
rt-n10-plus|\
+ tew-638apb-v2|\
tew-691gr|\
tew-692gr|\
ur-326n4g|\
ur-336un|\
tew-691gr|\
tew-692gr|\
ur-326n4g|\
ur-336un|\
- wf-2881|\
- wr512-3gn)
+ wf-2881)
status_led="$board:green:wps"
;;
rb750gr3)
status_led="$board:green:wps"
;;
rb750gr3)
@@
-214,12
+238,22
@@
get_status_led() {
sap-g3200u3)
status_led="$board:green:usb"
;;
sap-g3200u3)
status_led="$board:green:usb"
;;
+ u25awf-h1)
+ status_led="u25awf:red:wifi"
+ ;;
v22rw-2x2)
status_led="$board:green:security"
;;
v22rw-2x2)
status_led="$board:green:security"
;;
+ vocore-8M|\
+ vocore-16M)
+ status_led="vocore:green:status"
+ ;;
vocore2)
status_led="$board:fuchsia:status"
;;
vocore2)
status_led="$board:fuchsia:status"
;;
+ vocore2lite)
+ status_led="$board:green:status"
+ ;;
w306r-v20|\
witi|\
zbt-wr8305rt)
w306r-v20|\
witi|\
zbt-wr8305rt)
@@
-236,7
+270,8
@@
get_status_led() {
status_led="$board:amber:power"
;;
whr-g300n|\
status_led="$board:amber:power"
;;
whr-g300n|\
- wlr-6000)
+ wlr-6000|\
+ zbt-we2026)
status_led="$board:red:power"
;;
wzr-agl300nh)
status_led="$board:red:power"
;;
wzr-agl300nh)
@@
-245,14
+280,30
@@
get_status_led() {
wizfi630a)
status_led="$board::run"
;;
wizfi630a)
status_led="$board::run"
;;
+ wr512-3gn-4M|\
+ wr512-3gn-8M)
+ status_led="wr512-3gn:green:wps"
+ ;;
wrtnode2r | \
wrtnode2p | \
wrtnode)
status_led="wrtnode:blue:indicator"
;;
wrtnode2r | \
wrtnode2p | \
wrtnode)
status_led="wrtnode:blue:indicator"
;;
+ wt3020-4M|\
+ wt3020-8M)
+ status_led="wt3020:blue:power"
+ ;;
zbt-cpe102)
status_led="$board:green:4g-0"
;;
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
}
esac
}