ramips: explicitly disable built-in switch when needed
authorChuanhong Guo <gch981213@gmail.com>
Fri, 10 Apr 2020 04:32:42 +0000 (12:32 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sun, 12 Apr 2020 14:29:17 +0000 (22:29 +0800)
commit8f6334eb947a2594da8a2b58cf7afdabb83fb5a0
treef50b325667169606e63e4d95e42cd226b108e1ef
parentf017f617aecbd47debd4d3a734dc0e471342db96
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>
target/linux/ramips/mt7620/base-files/etc/board.d/02_network
target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
target/linux/ramips/rt305x/base-files/etc/board.d/02_network