summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/etc/diag.sh
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-04-08 00:34:48 +0200
committerMathias Kresin <dev@kresin.me>2017-04-21 07:47:59 +0200
commit18618695aedf8cf593ca5bb5a5a0b4c97e53dd2f (patch)
tree1c7c7866c12811fa125c5a6b159bf95c246a450b /target/linux/ramips/base-files/etc/diag.sh
parent9e468f7829eb6bfeff2a3671b04e53003a709313 (diff)
downloadmtk-20170518-18618695aedf8cf593ca5bb5a5a0b4c97e53dd2f.zip
mtk-20170518-18618695aedf8cf593ca5bb5a5a0b4c97e53dd2f.tar.gz
mtk-20170518-18618695aedf8cf593ca5bb5a5a0b4c97e53dd2f.tar.bz2
ramips: dont replace the board name
Use fixed led names and add each board variant instead of manipulating the board name. It makes the ramips board name function less different to the one used in other targets and allows to merge them with a common function. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files/etc/diag.sh')
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh32
1 files changed, 25 insertions, 7 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 3624efd..e5b4b59 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -16,7 +16,6 @@ get_status_led() {
3g-6200n|\
ar670w|\
ar725w|\
- asl26555|\
br-6425|\
br-6475nd|\
c50|\
@@ -79,7 +78,6 @@ get_status_led() {
mofi3500-3gn|\
rut5xx|\
v11st-fe|\
- vocore|\
wmr-300|\
zbt-wg2626|\
zbt-wg3526)
@@ -89,6 +87,10 @@ get_status_led() {
ht-tm02)
status_led="$board:blue:wlan"
;;
+ asl26555-8M|\
+ asl26555-16M)
+ status_led="asl26555:green:power"
+ ;;
atp-52b|\
ew1200|\
ip2202)
@@ -123,7 +125,6 @@ get_status_led() {
wl-330n|\
wl-330n3g|\
wli-tx4-ag300n|\
- wt3020|\
y1|\
y1s)
status_led="$board:blue:power"
@@ -162,10 +163,13 @@ get_status_led() {
status_led="$board:blue:wifi"
;;
m3|\
- m4|\
miwifi-nano)
status_led="$board:blue:status"
;;
+ m4-4M|\
+ m4-8M)
+ status_led="m4:blue:status"
+ ;;
miwifi-mini|\
zte-q7)
status_led="$board:red:status"
@@ -194,7 +198,10 @@ get_status_led() {
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|\
@@ -207,8 +214,7 @@ get_status_led() {
tew-692gr|\
ur-326n4g|\
ur-336un|\
- wf-2881|\
- wr512-3gn)
+ wf-2881)
status_led="$board:green:wps"
;;
rb750gr3)
@@ -220,6 +226,10 @@ get_status_led() {
v22rw-2x2)
status_led="$board:green:security"
;;
+ vocore-8M|\
+ vocore-16M)
+ status_led="vocore:green:status"
+ ;;
vocore2)
status_led="$board:fuchsia:status"
;;
@@ -249,11 +259,19 @@ get_status_led() {
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"
;;
+ wt3020-4M|\
+ wt3020-8M)
+ status_led="wt3020:blue:power"
+ ;;
zbt-cpe102)
status_led="$board:green:4g-0"
;;