[LEDE-DEV] [LEDE-DEV, v2] ar71xx: Fix switch config on Mikrotik RB450/G
João Chaínho
joaochainho at gmail.com
Fri Nov 18 10:26:16 PST 2016
This patch fixes the ethernet switch initial config for Mikrotik RB450 and RB450G.
The previous version wrongly changed the RouterStation Pro config. This one creates a specific config for the RB450G and leaves the RouterStation Pro unchanged.
Signed-off-by: João Chaínho <joaochainho at gmail.com>
---
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index df87c96..a2e02d5 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -343,9 +343,13 @@ ar71xx_setup_interfaces()
rb-450)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
ucidef_add_switch "switch0" \
- "0:lan" "1:lan" "2:lan" "3:lan" "5 at eth1"
+ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5 at eth1"
+ ;;
+ rb-450g)
+ ucidef_set_interfaces_lan_wan "eth1" "eth0"
+ ucidef_add_switch "switch0" \
+ "0 at eth1" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2"
;;
- rb-450g|\
routerstation-pro)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
ucidef_add_switch "switch0" \
More information about the Lede-dev
mailing list