Created
January 7, 2017 09:38
-
-
Save anonymous/6e396de6784f9ee94e1ee76fbd052412 to your computer and use it in GitHub Desktop.
0001-CC-mvebu-default-switch-config.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 442e47993bccaa98d8576b06bddc70ae15785073 Mon Sep 17 00:00:00 2001 | |
From: Ralph Sennhauser <ralph.sennhauser@gmail.com> | |
Date: Sat, 7 Jan 2017 10:37:25 +0100 | |
Subject: [PATCH] CC: mvebu: default switch config | |
--- | |
target/linux/mvebu/base-files/etc/uci-defaults/02_network | 12 ++++++++++++ | |
1 file changed, 12 insertions(+) | |
diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/02_network b/target/linux/mvebu/base-files/etc/uci-defaults/02_network | |
index 30bc3c5..2ec7ab0 100644 | |
--- a/target/linux/mvebu/base-files/etc/uci-defaults/02_network | |
+++ b/target/linux/mvebu/base-files/etc/uci-defaults/02_network | |
@@ -17,15 +17,27 @@ board=$(mvebu_board_name) | |
case "$board" in | |
armada-385-linksys-caiman) | |
ucidef_set_interfaces_lan_wan "eth1" "eth0" | |
+ ucidef_add_switch "switch0" "1" "1" | |
+ ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6" | |
+ ucidef_add_switch_vlan "switch0" "2" "4 5" | |
;; | |
armada-385-linksys-cobra) | |
ucidef_set_interfaces_lan_wan "eth1" "eth0" | |
+ ucidef_add_switch "switch0" "1" "1" | |
+ ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6" | |
+ ucidef_add_switch_vlan "switch0" "2" "4 5" | |
;; | |
armada-385-linksys-rango) | |
ucidef_set_interfaces_lan_wan "eth1" "eth0" | |
+ ucidef_add_switch "switch0" "1" "1" | |
+ ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6" | |
+ ucidef_add_switch_vlan "switch0" "2" "4 5" | |
;; | |
armada-385-linksys-shelby) | |
ucidef_set_interfaces_lan_wan "eth1" "eth0" | |
+ ucidef_add_switch "switch0" "1" "1" | |
+ ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6" | |
+ ucidef_add_switch_vlan "switch0" "2" "4 5" | |
;; | |
armada-xp-linksys-mamba) | |
ucidef_set_interfaces_lan_wan "eth0" "eth1" | |
-- | |
2.10.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment