aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/base-files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-02-07 08:55:46 +0100
committerJo-Philipp Wich <jo@mein.io>2017-02-07 09:32:28 +0100
commitea269c37b83b9e6b93e35d576b49a6e0ae8ea0b9 (patch)
treea1c247c4ed40a5466c4ba91f5ab3d8658ba43aa6 /target/linux/mvebu/base-files
parent62bf0d495810429bdda8cd2ebf94ef395f8111fd (diff)
downloadupstream-ea269c37b83b9e6b93e35d576b49a6e0ae8ea0b9.tar.gz
upstream-ea269c37b83b9e6b93e35d576b49a6e0ae8ea0b9.tar.bz2
upstream-ea269c37b83b9e6b93e35d576b49a6e0ae8ea0b9.zip
ar71xx/ipq806x/mediatek/mvebu: fix network defaults
After "73d923e base-files: emit tagged switch configuration by default" some default network configurations are broken because the lan and wan ifnames are forcibly set to untagged netdevs. Adjust the offending set_interfaces_lan_wan() calls to use the proper tagged device names. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/linux/mvebu/base-files')
-rwxr-xr-xtarget/linux/mvebu/base-files/etc/board.d/02_network4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mvebu/base-files/etc/board.d/02_network b/target/linux/mvebu/base-files/etc/board.d/02_network
index f4a87efc91..d71fa9aac1 100755
--- a/target/linux/mvebu/base-files/etc/board.d/02_network
+++ b/target/linux/mvebu/base-files/etc/board.d/02_network
@@ -17,7 +17,7 @@ armada-385-linksys-cobra|\
armada-385-linksys-rango|\
armada-385-linksys-shelby|\
armada-xp-linksys-mamba)
- ucidef_set_interfaces_lan_wan "eth0" "eth1"
+ ucidef_set_interfaces_lan_wan "eth0.1" "eth1.2"
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5@eth0" "4:wan" "6@eth1"
;;
@@ -31,7 +31,7 @@ armada-388-clearfog)
ucidef_set_interfaces_lan_wan "eth0 eth1" "eth2"
swconfig list 2>&1 | grep -q switch0 && \
ucidef_add_switch "switch0" \
- "0:lan:5" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5@eth0" "6:lan:6"
+ "0:lan:5" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5u@eth0" "6:lan:6"
;;
*)
ucidef_set_interface_lan "eth0"