aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7620
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2020-04-29 07:23:34 +0800
committerChuanhong Guo <gch981213@gmail.com>2020-05-19 19:03:02 +0800
commita43cbfe2e3a11cbba3f0e92edb96f12531352825 (patch)
treeb5f9f2f6eb2c848e5d79fa545a174e50eb067207 /target/linux/ramips/mt7620
parent597df570f3e131055e4ab00f3516d50fb74e931c (diff)
downloadupstream-a43cbfe2e3a11cbba3f0e92edb96f12531352825.tar.gz
upstream-a43cbfe2e3a11cbba3f0e92edb96f12531352825.tar.bz2
upstream-a43cbfe2e3a11cbba3f0e92edb96f12531352825.zip
ramips: remove default switch setup in 02_network
ramips images now relies on explicit switch setup for proper failsafe functionality. Remove default cases where it relies on vlan setup in dts and add switch setup for devices affected. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ramips/mt7620')
-rwxr-xr-xtarget/linux/ramips/mt7620/base-files/etc/board.d/02_network20
1 files changed, 8 insertions, 12 deletions
diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
index b780d48179..d024674c10 100755
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
@@ -16,11 +16,15 @@ ramips_setup_interfaces()
dlink,dwr-116-a1|\
dlink,dwr-921-c1|\
dlink,dwr-922-e2|\
+ dovado,tiny-ac|\
ohyeah,oy-0001|\
phicomm,psg1208|\
phicomm,psg1218a|\
planex,db-wrt01|\
planex,mzk-750dhp|\
+ ralink,mt7620a-evb|\
+ ralink,mt7620a-mt7610e-evb|\
+ ralink,mt7620a-v22sg-evb|\
sanlinking,d240|\
youku,yk1|\
zbtlink,zbt-ape522ii|\
@@ -71,18 +75,17 @@ ramips_setup_interfaces()
"1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0"
;;
asus,rt-ac51u|\
- asus,rt-ac54u)
- ucidef_add_switch "switch0" \
- "0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0"
- ;;
+ asus,rt-ac54u|\
asus,rt-n14u|\
bdcom,wap2100-sk|\
+ edimax,ew-7478apc|\
glinet,gl-mt300a|\
glinet,gl-mt300n|\
glinet,gl-mt750|\
hiwifi,hc5661|\
wrtnode,wrtnode|\
- zbtlink,zbt-wa05)
+ zbtlink,zbt-wa05|\
+ zyxel,keenetic-omni-ii)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
;;
@@ -213,17 +216,10 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan:5" "6@eth0"
;;
- zyxel,keenetic-omni-ii)
- ucidef_add_switch "switch0" \
- "0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6@eth0"
- ;;
zyxel,keenetic-viva)
ucidef_add_switch "switch1" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "7t@eth0"
;;
- *)
- ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
- ;;
esac
}