projects
/
openwrt
/
staging
/
mkresin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add support for Nokia WI2A-AC200i
[openwrt/staging/mkresin.git]
/
target
/
linux
/
ar71xx
/
base-files
/
etc
/
diag.sh
diff --git
a/target/linux/ar71xx/base-files/etc/diag.sh
b/target/linux/ar71xx/base-files/etc/diag.sh
index cea95b7f4e6c3004e615f712f1120534d01ef79e..7fa4ff0bcc92a26aacead2fe33538986ddfba504 100644
(file)
--- a/
target/linux/ar71xx/base-files/etc/diag.sh
+++ b/
target/linux/ar71xx/base-files/etc/diag.sh
@@
-1,11
+1,11
@@
#!/bin/sh
# Copyright (C) 2009-2013 OpenWrt.org
#!/bin/sh
# Copyright (C) 2009-2013 OpenWrt.org
+. /lib/functions.sh
. /lib/functions/leds.sh
. /lib/functions/leds.sh
-. /lib/ar71xx.sh
get_status_led() {
get_status_led() {
- local board=$(
ar71xx_
board_name)
+ local board=$(board_name)
case $board in
a40)
case $board in
a40)
@@
-30,12
+30,16
@@
get_status_led() {
xd3200)
status_led="$board:green:system"
;;
xd3200)
status_led="$board:green:system"
;;
+ ap121f)
+ status_led="$board:green:vpn"
+ ;;
ap132|\
ap531b0|\
cpe505n|\
db120|\
dr344|\
tew-632brp|\
ap132|\
ap531b0|\
cpe505n|\
db120|\
dr344|\
tew-632brp|\
+ tl-wr942n-v1|\
wpj344|\
zbt-we1526)
status_led="$board:green:status"
wpj344|\
zbt-we1526)
status_led="$board:green:status"
@@
-50,14
+54,19
@@
get_status_led() {
ap135-020)
status_led="ap135:green:status"
;;
ap135-020)
status_led="ap135:green:status"
;;
+ archer-c25-v1|\
+ archer-c58-v1|\
archer-c59-v1|\
archer-c60-v1|\
archer-c59-v1|\
archer-c60-v1|\
+ fritz300e|\
+ gl-usb150|\
mr12|\
mr16|\
nbg6616|\
sc1750|\
sc450|\
mr12|\
mr16|\
nbg6616|\
sc1750|\
sc450|\
- tl-wpa8630)
+ tl-wpa8630|\
+ tl-wr902ac-v1)
status_led="$board:green:power"
;;
ap90q|\
status_led="$board:green:power"
;;
ap90q|\
@@
-170,11
+179,14
@@
get_status_led() {
status_led="$board:blue:status"
;;
eap120)
status_led="$board:blue:status"
;;
eap120)
- status_led="$
(ar71xx_board_name)
:green:system"
+ status_led="$
board
:green:system"
;;
eap300v2)
status_led="engenius:blue:power"
;;
;;
eap300v2)
status_led="engenius:blue:power"
;;
+ ens202ext)
+ status_led="engenius:amber:power"
+ ;;
eap7660d)
status_led="$board:green:ds4"
;;
eap7660d)
status_led="$board:green:ds4"
;;
@@
-196,6
+208,10
@@
get_status_led() {
esr900)
status_led="engenius:amber:power"
;;
esr900)
status_led="engenius:amber:power"
;;
+ hiveap-121|\
+ nbg6716)
+ status_led="$board:white:power"
+ ;;
hiwifi-hc6361)
status_led="hiwifi:blue:system"
;;
hiwifi-hc6361)
status_led="hiwifi:blue:system"
;;
@@
-248,9
+264,6
@@
get_status_led() {
nbg460n_550n_550nh)
status_led="nbg460n:green:power"
;;
nbg460n_550n_550nh)
status_led="nbg460n:green:power"
;;
- nbg6716)
- status_led="$board:white:power"
- ;;
om2p|\
om2pv2|\
om2pv4|\
om2p|\
om2pv2|\
om2pv4|\
@@
-303,12
+316,11
@@
get_status_led() {
status_led="rb750:green:act"
;;
rb-750-r2|\
status_led="rb750:green:act"
;;
rb-750-r2|\
+ rb-750p-pbr2|\
rb-750up-r2|\
rb-911g-2hpnd|\
rb-911g-5hpacd|\
rb-911g-5hpnd|\
rb-750up-r2|\
rb-911g-2hpnd|\
rb-911g-5hpacd|\
rb-911g-5hpnd|\
- rb-912uag-2hpnd|\
- rb-912uag-5hpnd|\
rb-941-2nd|\
rb-951ui-2nd|\
rb-952ui-5ac2nd|\
rb-941-2nd|\
rb-951ui-2nd|\
rb-952ui-5ac2nd|\
@@
-320,6
+332,8
@@
get_status_led() {
rb-951ui-2hnd)
status_led="rb:green:act"
;;
rb-951ui-2hnd)
status_led="rb:green:act"
;;
+ rb-912uag-2hpnd|\
+ rb-912uag-5hpnd|\
rb-sxt2n|\
rb-sxt5n)
status_led="rb:green:power"
rb-sxt2n|\
rb-sxt5n)
status_led="rb:green:power"
@@
-362,9
+376,13
@@
get_status_led() {
tl-wa850re-v2)
status_led="tp-link:blue:re"
;;
tl-wa850re-v2)
status_led="tp-link:blue:re"
;;
+ tl-wa855re-v1|\
tl-wa860re)
status_led="tp-link:green:power"
;;
tl-wa860re)
status_led="tp-link:green:power"
;;
+ tl-mr6400)
+ status_led="tp-link:white:power"
+ ;;
tl-mr3220|\
tl-mr3220-v2|\
tl-mr3420|\
tl-mr3220|\
tl-mr3220-v2|\
tl-mr3420|\
@@
-381,6
+399,7
@@
get_status_led() {
tl-wr1043nd|\
tl-wr1043nd-v2|\
tl-wr1043nd-v4|\
tl-wr1043nd|\
tl-wr1043nd-v2|\
tl-wr1043nd-v4|\
+ tl-wr740n-v6|\
tl-wr741nd|\
tl-wr741nd-v4|\
tl-wa801nd-v3|\
tl-wr741nd|\
tl-wr741nd-v4|\
tl-wa801nd-v3|\
@@
-440,6
+459,9
@@
get_status_led() {
airgatewaypro)
status_led="ubnt:white:status"
;;
airgatewaypro)
status_led="ubnt:white:status"
;;
+ wi2a-ac200i)
+ status_led="nokia:green:ctrl"
+ ;;
whr-g301n|\
whr-hp-g300n|\
whr-hp-gn|\
whr-g301n|\
whr-hp-g300n|\
whr-hp-gn|\
@@
-502,7
+524,7
@@
set_state() {
;;
done)
status_led_on
;;
done)
status_led_on
- case $(
ar71xx_
board_name) in
+ case $(board_name) in
gl-ar300m)
fw_printenv lc >/dev/null 2>&1 && fw_setenv "bootcount" 0
;;
gl-ar300m)
fw_printenv lc >/dev/null 2>&1 && fw_setenv "bootcount" 0
;;
@@
-510,6
+532,9
@@
set_state() {
local n=$(fw_printenv activeregion | cut -d = -f 2)
fw_setenv "image${n}trynum" 0
;;
local n=$(fw_printenv activeregion | cut -d = -f 2)
fw_setenv "image${n}trynum" 0
;;
+ wi2a-ac200i)
+ fw_setenv PKRstCnt 0
+ ;;
esac
;;
esac
esac
;;
esac