From: Luka Perkov Date: Thu, 18 Dec 2014 18:38:38 +0000 (+0000) Subject: kirkwood: set default EA4500 switch config X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ec9a0f898a67d5218935da87dabc32ede960f4e7;p=openwrt%2Fstaging%2Fmans0n.git kirkwood: set default EA4500 switch config This maps the LAN ports to eth0 and WAN port to eth1. Since there are two interfaces the 802.1q VLAN mode is unnecessary and left disabled. Port-based VLANs are used instead. Signed-off-by: Claudio Leite SVN-Revision: 43750 --- 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 bc7e793db5..5b79687784 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network @@ -20,6 +20,19 @@ set network.lan6.reqprefix='no' EOF } +add_port_based_vlan() { + local device=$1 + local vlan=$2 + local ports=$3 + uci batch <