aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt76x8/base-files/etc/board.d
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2020-04-10 12:32:42 +0800
committerChuanhong Guo <gch981213@gmail.com>2020-04-12 22:29:17 +0800
commit8f6334eb947a2594da8a2b58cf7afdabb83fb5a0 (patch)
treef50b325667169606e63e4d95e42cd226b108e1ef /target/linux/ramips/mt76x8/base-files/etc/board.d
parentf017f617aecbd47debd4d3a734dc0e471342db96 (diff)
downloadupstream-8f6334eb947a2594da8a2b58cf7afdabb83fb5a0.tar.gz
upstream-8f6334eb947a2594da8a2b58cf7afdabb83fb5a0.tar.bz2
upstream-8f6334eb947a2594da8a2b58cf7afdabb83fb5a0.zip
ramips: explicitly disable built-in switch when needed
previously we rely on the failsafe setup in preinit scripts to disable built-in switch implicitly for single-port devices. This doesn't work anymore due to preinit script removal. this patch explicitly disable built-in switch for needed devices. Fixes: a8d62a4eb1 ("ramips: remove set_preinit_iface script") Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ramips/mt76x8/base-files/etc/board.d')
-rwxr-xr-xtarget/linux/ramips/mt76x8/base-files/etc/board.d/02_network20
1 files changed, 9 insertions, 11 deletions
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
index 5230717506..a6543fd38f 100755
--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
@@ -11,11 +11,19 @@ ramips_setup_interfaces()
case $board in
alfa-network,awusfree1|\
d-team,pbr-d1|\
+ mediatek,linkit-smart-7688|\
+ onion,omega2p|\
+ onion,omega2|\
tama,w06|\
tplink,re200-v2|\
tplink,re305-v1|\
tplink,tl-mr3020-v3|\
- tplink,tl-wr802n-v4)
+ tplink,tl-wr802n-v4|\
+ tplink,tl-wa801nd-v5|\
+ widora,neo-16m|\
+ widora,neo-32m)
+ ucidef_add_switch "switch0"
+ ucidef_add_switch_attr "switch0" "enable" "false"
ucidef_set_interface_lan "eth0"
;;
buffalo,wcr-1166ds)
@@ -81,16 +89,6 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0"
;;
- mediatek,linkit-smart-7688|\
- onion,omega2p|\
- onion,omega2|\
- tplink,tl-wa801nd-v5|\
- widora,neo-16m|\
- widora,neo-32m)
- ucidef_add_switch "switch0"
- ucidef_add_switch_attr "switch0" "enable" "false"
- ucidef_set_interface_lan "eth0"
- ;;
netgear,r6120)
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"