projects
/
openwrt
/
staging
/
mkresin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips : add support for Newifi D1
[openwrt/staging/mkresin.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 7fc6f29727e1cc2e3c41096f13d9ca3f9ecbe807..00239214159829d406a01141658ea72b3777ca69 100644
(file)
--- a/
target/linux/ramips/base-files/etc/diag.sh
+++ b/
target/linux/ramips/base-files/etc/diag.sh
@@
-19,24
+19,32
@@
get_status_led() {
asl26555|\
br-6425|\
br-6475nd|\
asl26555|\
br-6425|\
br-6475nd|\
+ dch-m225|\
+ dir-860l-b1|\
e1700|\
fonera20n|\
e1700|\
fonera20n|\
+ mzk-750dhp|\
mzk-dp150n|\
mzk-w300nh2|\
nbg-419n|\
pwh2004|\
wnce2001|\
mzk-dp150n|\
mzk-w300nh2|\
nbg-419n|\
pwh2004|\
wnce2001|\
+ wndr3700v5|\
x5|\
x8|\
xdxrn502j)
status_led="$board:green:power"
;;
a5-v11|\
x5|\
x8|\
xdxrn502j)
status_led="$board:green:power"
;;
a5-v11|\
+ cs-qr10|\
d105|\
dcs-930l-b1|\
d105|\
dcs-930l-b1|\
+ ex2700|\
hlk-rm04|\
hlk-rm04|\
+ jhr-n825r|\
mpr-a1|\
mpr-a1|\
- mpr-a2)
+ mpr-a2|\
+ mzk-ex750np)
status_led="$board:red:power"
;;
ai-br100|\
status_led="$board:red:power"
;;
ai-br100|\
@@
-57,12
+65,15
@@
get_status_led() {
dir-620-d1|\
hpm|\
hw550-3g|\
dir-620-d1|\
hpm|\
hw550-3g|\
+ mac1200rv2|\
miniembwifi|\
mofi3500-3gn|\
rut5xx|\
v11st-fe|\
vocore|\
miniembwifi|\
mofi3500-3gn|\
rut5xx|\
v11st-fe|\
vocore|\
- wmr-300)
+ wmr-300|\
+ zbt-wg2626|\
+ zbt-wg3526)
status_led="$board:green:status"
;;
atp-52b|\
status_led="$board:green:status"
;;
atp-52b|\
@@
-70,10
+81,16
@@
get_status_led() {
status_led="$board:green:run"
;;
awapn2403|\
status_led="$board:green:run"
;;
awapn2403|\
- dir-645)
+ dir-645|\
+ sk-wb8|\
+ wrh-300cr)
status_led="$board:green:wps"
;;
status_led="$board:green:wps"
;;
- cf-wr800n)
+ c50)
+ status_led="tp-link:blue:power"
+ ;;
+ cf-wr800n|\
+ psg1208)
status_led="$board:white:wps"
;;
cy-swr1100|\
status_led="$board:white:wps"
;;
cy-swr1100|\
@@
-82,6
+99,7
@@
get_status_led() {
;;
dap-1350|\
na930|\
;;
dap-1350|\
na930|\
+ pbr-m1|\
rt-n13u|\
rt-n14u|\
rt-n15|\
rt-n13u|\
rt-n14u|\
rt-n15|\
@@
-95,15
+113,28
@@
get_status_led() {
status_led="$board:blue:power"
;;
db-wrt01|\
status_led="$board:blue:power"
;;
db-wrt01|\
- esr-9753)
+ esr-9753|\
+ pbr-d1)
status_led="$board:orange:power"
;;
f5d8235-v2)
status_led="$board:blue:router"
;;
status_led="$board:orange:power"
;;
f5d8235-v2)
status_led="$board:blue:router"
;;
- f7c027)
+ f7c027|\
+ timecloud)
status_led="$board:orange:status"
;;
status_led="$board:orange:status"
;;
+ hc5*61|\
+ jhr-n805r|\
+ jhr-n926r|\
+ mlw221|\
+ mlwg2)
+ status_led="$board:blue:system"
+ ;;
+ linkits7688| \
+ linkits7688d)
+ [ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
+ ;;
m2m)
status_led="$board:blue:wifi"
;;
m2m)
status_led="$board:blue:wifi"
;;
@@
-115,25
+146,20
@@
get_status_led() {
zte-q7)
status_led="$board:red:status"
;;
zte-q7)
status_led="$board:red:status"
;;
- mlw221|\
- mlwg2)
- status_led="$board:blue:system"
- ;;
mr-102n)
status_led="$board:amber:status"
;;
nw718)
status_led="$board:amber:cpu"
;;
mr-102n)
status_led="$board:amber:status"
;;
nw718)
status_led="$board:amber:cpu"
;;
+ newifi-d1)
+ status_led="$board:blue:status"
+ ;;
oy-0001|\
oy-0001|\
- sl-r7205)
+ sl-r7205|\
+ zbt-we826)
status_led="$board:green:wifi"
;;
status_led="$board:green:wifi"
;;
- pbr-m1|\
- w306r-v20|\
- zbt-wr8305rt)
- status_led="$board:green:sys"
- ;;
psr-680w)
status_led="$board:red:wan"
;;
psr-680w)
status_led="$board:red:wan"
;;
@@
-141,14
+167,17
@@
get_status_led() {
re6500|\
whr-1166d|\
whr-300hp2|\
re6500|\
whr-1166d|\
whr-300hp2|\
- whr-600d)
+ whr-600d|\
+ widora-neo)
status_led="$board:orange:wifi"
;;
status_led="$board:orange:wifi"
;;
+ mzk-ex300np|\
rt-n10-plus|\
tew-691gr|\
tew-692gr|\
ur-326n4g|\
ur-336un|\
rt-n10-plus|\
tew-691gr|\
tew-692gr|\
ur-326n4g|\
ur-336un|\
+ wf-2881|\
wr512-3gn)
status_led="$board:green:wps"
;;
wr512-3gn)
status_led="$board:green:wps"
;;
@@
-158,6
+187,11
@@
get_status_led() {
v22rw-2x2)
status_led="$board:green:security"
;;
v22rw-2x2)
status_led="$board:green:security"
;;
+ w306r-v20|\
+ witi|\
+ zbt-wr8305rt)
+ status_led="$board:green:sys"
+ ;;
wcr-150gn|\
wl-351)
status_led="$board:amber:power"
wcr-150gn|\
wl-351)
status_led="$board:amber:power"
@@
-171,13
+205,21
@@
get_status_led() {
;;
wsr-1166|\
wsr-600)
;;
wsr-1166|\
wsr-600)
- status_led="$board:orange:diag"
+ status_led="$board:green:power"
+ ;;
+ wrtnode2r | \
+ wrtnode2p | \
+ wrtnode)
+ status_led="wrtnode:blue:indicator"
+ ;;
+ zbt-cpe102)
+ status_led="$board:green:4g-0"
;;
esac
}
set_state() {
;;
esac
}
set_state() {
- get_status_led
+ get_status_led
$1
case "$1" in
preinit)
case "$1" in
preinit)
@@
-186,6
+228,7
@@
set_state() {
failsafe)
status_led_blink_failsafe
;;
failsafe)
status_led_blink_failsafe
;;
+ upgrade | \
preinit_regular)
status_led_blink_preinit_regular
;;
preinit_regular)
status_led_blink_preinit_regular
;;