summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds22
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network2
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh54
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration22
4 files changed, 45 insertions, 55 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 27e6c8a033..dff314465c 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -137,11 +137,11 @@ bsb)
ucidef_set_led_default "sys" "SYS" "$board:red:sys" "1"
;;
bullet-m|\
+loco-m-xw|\
nanostation-m|\
-rocket-m|\
-rocket-m-xw|\
nanostation-m-xw|\
-loco-m-xw)
+rocket-m|\
+rocket-m-xw)
ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" "0" "13"
ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" "-25" "13"
ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
@@ -302,8 +302,8 @@ rb-962uigs-5hact2hnt)
rb-2011il|\
rb-2011l|\
rb-2011uas|\
-rb-2011uias|\
rb-2011uas-2hnd|\
+rb-2011uias|\
rb-2011uias-2hnd)
ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
@@ -501,13 +501,13 @@ nbg6716)
ucidef_set_led_usbdev "usb2" "USB2" "$board:white:usb2" "2-1"
;;
om2p|\
-om2pv2|\
-om2pv4|\
om2p-hs|\
om2p-hsv2|\
om2p-hsv3|\
om2p-hsv4|\
-om2p-lc)
+om2p-lc|\
+om2pv2|\
+om2pv4)
ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
ucidef_set_led_default "wlan-red" "WLAN (red)" "om2p:red:wifi" "0"
@@ -640,8 +640,8 @@ tl-wr941nd-v5)
ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
case "$board" in
- tl-wr842n-v2|\
- tl-mr3420-v2)
+ tl-mr3420-v2|\
+ tl-wr842n-v2)
ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
;;
esac
@@ -686,9 +686,9 @@ tl-wa850re-v2)
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
;;
tl-wa701nd-v2|\
-tl-wa860re|\
-tl-wa830re-v2|\
tl-wa801nd-v2|\
+tl-wa830re-v2|\
+tl-wa860re|\
tl-wa901nd-v3|\
tl-wa901nd-v4)
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index a75f5fe29f..e5a943374f 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -145,8 +145,8 @@ ar71xx_setup_interfaces()
gl-inet|\
gl-mifi|\
jwap003|\
- om2pv4|\
om2p-hsv4|\
+ om2pv4|\
pb42|\
pb44|\
rb-951ui-2hnd|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index f4ad435ea7..5ef620b861 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -23,6 +23,7 @@ get_status_led() {
antminer-s1|\
antminer-s3|\
antminer-r1|\
+ eap120|\
minibox-v1|\
som9331|\
sr3200|\
@@ -73,9 +74,9 @@ get_status_led() {
ap90q|\
cpe830|\
cpe870|\
+ gl-ar300m|\
gl-inet|\
- gl-mifi|\
- gl-ar300m)
+ gl-mifi)
status_led="$board:green:lan"
;;
ap96)
@@ -93,12 +94,12 @@ get_status_led() {
status_led="$board:red:sys"
;;
bullet-m|\
- rocket-m|\
- rocket-m-xw|\
+ loco-m-xw|\
nano-m|\
nanostation-m|\
nanostation-m-xw|\
- loco-m-xw)
+ rocket-m|\
+ rocket-m-xw)
status_led="ubnt:green:link4"
;;
rocket-m-ti)
@@ -132,9 +133,7 @@ get_status_led() {
cpe510)
status_led="tp-link:green:link4"
;;
- cr3000)
- status_led="pcs:amber:power"
- ;;
+ cr3000|\
cr5000)
status_led="pcs:amber:power"
;;
@@ -179,20 +178,18 @@ get_status_led() {
dw33d)
status_led="$board:blue:status"
;;
- eap120)
- status_led="$board:green:system"
- ;;
eap300v2)
status_led="engenius:blue:power"
;;
- ens202ext)
+ ens202ext|\
+ esr900)
status_led="engenius:amber:power"
;;
eap7660d)
status_led="$board:green:ds4"
;;
- el-mini|\
- el-m150)
+ el-m150|\
+ el-mini)
status_led="easylink:green:system"
;;
ew-dorin|\
@@ -206,9 +203,6 @@ get_status_led() {
esr1750)
status_led="$board:amber:power"
;;
- esr900)
- status_led="engenius:amber:power"
- ;;
hiveap-121|\
nbg6716)
status_led="$board:white:power"
@@ -252,9 +246,7 @@ get_status_led() {
status_led="mr900:blue:power"
;;
mynet-n600|\
- mynet-n750)
- status_led="wd:blue:power"
- ;;
+ mynet-n750|\
mynet-rext)
status_led="wd:blue:power"
;;
@@ -266,13 +258,13 @@ get_status_led() {
status_led="nbg460n:green:power"
;;
om2p|\
- om2pv2|\
- om2pv4|\
om2p-hs|\
om2p-hsv2|\
om2p-hsv3|\
om2p-hsv4|\
- om2p-lc)
+ om2p-lc|\
+ om2pv2|\
+ om2pv4)
status_led="om2p:blue:power"
;;
om5p|\
@@ -367,7 +359,8 @@ get_status_led() {
tew-823dru)
status_led="trendnet:green:power"
;;
- tl-mr3020)
+ tl-mr3020|\
+ tl-wr2543n)
status_led="tp-link:green:wps"
;;
tl-wa750re)
@@ -390,6 +383,8 @@ get_status_led() {
tl-mr3420-v2|\
tl-wa701nd-v2|\
tl-wa801nd-v2|\
+ tl-wa801nd-v3|\
+ tl-wa830re-v2|\
tl-wa901nd|\
tl-wa901nd-v2|\
tl-wa901nd-v3|\
@@ -403,14 +398,12 @@ get_status_led() {
tl-wr740n-v6|\
tl-wr741nd|\
tl-wr741nd-v4|\
- tl-wa801nd-v3|\
tl-wr840n-v2|\
tl-wr840n-v3|\
tl-wr841n-v1|\
tl-wr841n-v7|\
tl-wr841n-v8|\
tl-wr841n-v11|\
- tl-wa830re-v2|\
tl-wr842n-v2|\
tl-wr842n-v3|\
tl-wr941nd|\
@@ -419,11 +412,11 @@ get_status_led() {
;;
archer-c5|\
archer-c7|\
- tl-wdr4900-v2|\
tl-mr10u|\
tl-mr12u|\
tl-mr13u|\
tl-wdr4300|\
+ tl-wdr4900-v2|\
tl-wr703n|\
tl-wr710n|\
tl-wr720n-v3|\
@@ -436,9 +429,6 @@ get_status_led() {
tl-wr841n-v9)
status_led="tp-link:green:qss"
;;
- tl-wr2543n)
- status_led="tp-link:green:wps"
- ;;
tl-wdr6500-v2)
status_led="tp-link:white:system"
;;
@@ -496,8 +486,8 @@ get_status_led() {
wpj563)
status_led="$board:green:sig1"
;;
- wrt400n|\
- wrt160nl)
+ wrt160nl|\
+ wrt400n)
status_led="$board:blue:wps"
;;
zcn-1523h-2|\
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
index 338a22297b..29fdde40a0 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
@@ -43,20 +43,18 @@ migrate_switch_name() {
board=$(board_name)
case "$board" in
-dir-825-c1|\
-wzr-hp-g300nh2|\
-tl-wdr4300|\
-tl-wr1041n-v2|\
-wrt160nl|\
+airrouter|\
ap121|\
ap121-mini|\
ap96|\
-airrouter|\
dir-600-a1|\
dir-615-c1|\
dir-615-e1|\
dir-615-e4|\
+dir-825-c1|\
ebr-2310-c1|\
+ew-dorin|\
+ew-dorin-router|\
ja76pf|\
rb-750|\
rb-751|\
@@ -65,17 +63,19 @@ tew-712br|\
tl-mr3220|\
tl-mr3220-v2 |\
tl-mr3420|\
+tl-wdr4300|\
tl-wr741nd|\
tl-wr741nd-v4|\
tl-wr841n-v7|\
+tl-wr1041n-v2|\
whr-g301n|\
whr-hp-g300n|\
whr-hp-gn|\
+wrt160nl|\
wzr-hp-ag300h|\
+wzr-hp-g300nh2|\
wzr-hp-g450h|\
-z1|\
-ew-dorin|\
-ew-dorin-router)
+z1)
migrate_switch_name "eth0" "switch0"
;;
@@ -93,8 +93,8 @@ rb-2011uas-2hnd)
;;
dir-825-b1|\
-tew-673gru|\
-nbg460n_550n_550nh)
+nbg460n_550n_550nh|\
+tew-673gru)
migrate_switch_name "rtl8366s" "switch0"
;;