diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2020-04-10 12:32:42 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2020-04-12 22:29:17 +0800 |
commit | 8f6334eb947a2594da8a2b58cf7afdabb83fb5a0 (patch) | |
tree | f50b325667169606e63e4d95e42cd226b108e1ef /target/linux/ramips/mt7620/base-files | |
parent | f017f617aecbd47debd4d3a734dc0e471342db96 (diff) | |
download | upstream-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/mt7620/base-files')
-rwxr-xr-x | target/linux/ramips/mt7620/base-files/etc/board.d/02_network | 36 |
1 files changed, 18 insertions, 18 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 d870b5c11c..44a9db6ece 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 @@ -40,8 +40,14 @@ ramips_setup_interfaces() alfa-network,tube-e4g|\ buffalo,wmr-300|\ dlink,dch-m225|\ + edimax,ew-7476rpc|\ + edimax,ew-7478ac|\ elecom,wrh-300cr|\ kimax,u25awf-h1|\ + kimax,u35wf|\ + kingston,mlw221|\ + kingston,mlwg2|\ + microduino,microwrt|\ netgear,ex2700|\ netgear,ex3700|\ netgear,ex6130|\ @@ -52,7 +58,12 @@ ramips_setup_interfaces() ravpower,wd03|\ sercomm,na930|\ tplink,re200-v1|\ - tplink,re210-v1) + tplink,re210-v1|\ + yukai,bocco|\ + zbtlink,zbt-cpe102|\ + zte,q7) + ucidef_add_switch "switch0" + ucidef_add_switch_attr "switch0" "enable" "false" ucidef_set_interface_lan "eth0" ;; asus,rp-n53) @@ -106,19 +117,10 @@ ramips_setup_interfaces() ;; edimax,br-6478ac-v2|\ tplink,archer-c2-v1) - ucidef_add_switch "switch1" \ - "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0" - ;; - edimax,ew-7476rpc|\ - edimax,ew-7478ac|\ - kimax,u35wf|\ - microduino,microwrt|\ - yukai,bocco|\ - zbtlink,zbt-cpe102|\ - zte,q7) ucidef_add_switch "switch0" ucidef_add_switch_attr "switch0" "enable" "false" - ucidef_set_interface_lan "eth0" + ucidef_add_switch "switch1" \ + "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0" ;; engenius,esr600) ucidef_add_switch "switch0" \ @@ -142,6 +144,8 @@ ramips_setup_interfaces() ;; iodata,wn-ac1167gr|\ iodata,wn-ac733gr3) + ucidef_add_switch "switch0" + ucidef_add_switch_attr "switch0" "enable" "false" ucidef_add_switch "switch1" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0" ;; @@ -149,12 +153,6 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0" ;; - kingston,mlw221) - ucidef_set_interface_lan "eth0.2" - ;; - kingston,mlwg2) - ucidef_set_interface_lan "eth0.1" - ;; lava,lr-25g001) ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0" @@ -170,6 +168,8 @@ ramips_setup_interfaces() ;; linksys,e1700|\ ralink,mt7620a-mt7530-evb) + ucidef_add_switch "switch0" + ucidef_add_switch_attr "switch0" "enable" "false" ucidef_add_switch "switch1" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" ;; |