2
0
forked from Ivasoft/openwrt

ramips: explicitly disable built-in switch for lan-only devices

Commit 8f6334eb94 ("ramips: explicitly disable built-in switch when needed")
did not fix rt288x and rt3883 devices. This patch deals with them.

While at it, consolidate duplicate cases in interface setup.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
This commit is contained in:
Sungbo Eo
2020-04-25 18:11:12 +09:00
committed by Adrian Schmutzler
parent 1553f58a98
commit a1693bf626
3 changed files with 5 additions and 5 deletions

View File

@@ -27,6 +27,8 @@ ramips_setup_interfaces()
;;
loewe,wmdr-143n|\
omnima,hpm)
ucidef_add_switch "switch0"
ucidef_add_switch_attr "switch0" "enable" "false"
ucidef_set_interface_lan "eth0"
;;
samsung,cy-swr1100)