summaryrefslogtreecommitdiff
path: root/target/linux/kirkwood/base-files
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2015-01-18 16:45:01 +0000
committerLuka Perkov <luka@openwrt.org>2015-01-18 16:45:01 +0000
commit34f6c6fc3809e3a5ecaf7698b048741d1792ba2b (patch)
treef4a5d3abdaac8635e70ae3e400d85bb76aa9aa25 /target/linux/kirkwood/base-files
parentd41d7cc19909037156a74a4a06cfa3ffe3a6c992 (diff)
downloadmtk-20170518-34f6c6fc3809e3a5ecaf7698b048741d1792ba2b.zip
mtk-20170518-34f6c6fc3809e3a5ecaf7698b048741d1792ba2b.tar.gz
mtk-20170518-34f6c6fc3809e3a5ecaf7698b048741d1792ba2b.tar.bz2
kirkwood: enable switch on Linksys EA3500
Signed-off-by: Claudio Leite <leitec@staticky.com> SVN-Revision: 44036
Diffstat (limited to 'target/linux/kirkwood/base-files')
-rw-r--r--target/linux/kirkwood/base-files/etc/uci-defaults/02_network3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
index 9fd6845..994d7e8 100644
--- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
+++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
@@ -55,6 +55,9 @@ case "$board" in
;;
"ea3500")
ucidef_set_interfaces_lan_wan "eth0" "eth1"
+ ucidef_add_switch "switch0" "1" "0"
+ add_port_based_vlan "switch0" "1" "0 1 2 3 5"
+ add_port_based_vlan "switch0" "2" "4 6"
;;
"ea4500")
ucidef_set_interfaces_lan_wan "eth0" "eth1"