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/rt305x | |
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/rt305x')
-rwxr-xr-x | target/linux/ramips/rt305x/base-files/etc/board.d/02_network | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ramips/rt305x/base-files/etc/board.d/02_network b/target/linux/ramips/rt305x/base-files/etc/board.d/02_network index 5efcd53955..d6ba16f7a8 100755 --- a/target/linux/ramips/rt305x/base-files/etc/board.d/02_network +++ b/target/linux/ramips/rt305x/base-files/etc/board.d/02_network @@ -110,6 +110,8 @@ ramips_setup_interfaces() "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan:5" "6@eth0" ;; huawei,d105) + ucidef_add_switch "switch0" + ucidef_add_switch_attr "switch0" "enable" "false" ucidef_set_interface_lan "eth0" ;; huawei,hg255d) |