aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJoão Chaínho <joaochainho@gmail.com>2016-11-18 18:26:16 +0000
committerJohn Crispin <john@phrozen.org>2016-11-21 10:11:37 +0100
commit39433bb6182c30b2113fead646be58d94906acb4 (patch)
tree0d26c64851022e3569ffefd21195528118c27190 /target/linux
parentd6e8b1f841fe55ad51d22210981e0ffca5241886 (diff)
downloadupstream-39433bb6182c30b2113fead646be58d94906acb4.tar.gz
upstream-39433bb6182c30b2113fead646be58d94906acb4.tar.bz2
upstream-39433bb6182c30b2113fead646be58d94906acb4.zip
ar71xx: Fix switch config on Mikrotik RB450/G
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@gmail.com>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network8
1 files changed, 6 insertions, 2 deletions
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 2b9a01228d..949f161c9c 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -345,9 +345,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@eth1"
+ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5@eth1"
+ ;;
+ rb-450g)
+ ucidef_set_interfaces_lan_wan "eth1" "eth0"
+ ucidef_add_switch "switch0" \
+ "0@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" \