[source] mvebu: add switch config for clearfog pro

LEDE Commits lede-commits at lists.infradead.org
Mon Sep 26 04:29:25 PDT 2016


jogo pushed a commit to source.git, branch master:
https://git.lede-project.org/27ed4e9c14afbae6a91651866d9c9ab2d34342c4

commit 27ed4e9c14afbae6a91651866d9c9ab2d34342c4
Author: Jonas Gorski <jonas.gorski at gmail.com>
AuthorDate: Mon Sep 26 13:25:44 2016 +0200

    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 at gmail.com>
---
 target/linux/mvebu/base-files/etc/board.d/02_network | 3 +++
 1 file changed, 3 insertions(+)

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 at eth0" "6:lan:6"
 	;;
 *)
 	ucidef_set_interface_lan "eth0"



More information about the lede-commits mailing list