Skip to content

Instantly share code, notes, and snippets.

Created January 7, 2017 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6e396de6784f9ee94e1ee76fbd052412 to your computer and use it in GitHub Desktop.
Save anonymous/6e396de6784f9ee94e1ee76fbd052412 to your computer and use it in GitHub Desktop.
0001-CC-mvebu-default-switch-config.patch
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