summaryrefslogtreecommitdiff
path: root/target/linux/mvebu
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2016-09-26 13:25:44 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2016-09-26 13:27:44 +0200
commit27ed4e9c14afbae6a91651866d9c9ab2d34342c4 (patch)
treede12b201e623c89a7dcb36198d745795c7988b88 /target/linux/mvebu
parent6859098d97aaa4e60a795f5887911958ca134ed0 (diff)
downloadmtk-20170518-27ed4e9c14afbae6a91651866d9c9ab2d34342c4.zip
mtk-20170518-27ed4e9c14afbae6a91651866d9c9ab2d34342c4.tar.gz
mtk-20170518-27ed4e9c14afbae6a91651866d9c9ab2d34342c4.tar.bz2
mvebu: add switch config for clearfog pro
Check for switch0 existance and add default switch config if found. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux/mvebu')
-rwxr-xr-xtarget/linux/mvebu/base-files/etc/board.d/02_network3
1 files changed, 3 insertions, 0 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 8f633c9..21c6660 100755
--- a/target/linux/mvebu/base-files/etc/board.d/02_network
+++ b/target/linux/mvebu/base-files/etc/board.d/02_network
@@ -31,6 +31,9 @@ armada-xp-gp)
;;
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"
;;
*)
ucidef_set_interface_lan "eth0"