From 0c1f9db11441bc272e018ccda9813395e06fa68f Mon Sep 17 00:00:00 2001 From: juhosg Date: Mon, 7 Nov 2011 21:43:56 +0000 Subject: ar71xx: create even more network configs from the uci-defaults script Create the default network configuration dynamically for the AR724x/AR9331 boards. Some other boards are using the same configuration, so convert those as well. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28820 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../ar71xx/base-files/etc/uci-defaults/network | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults/network') diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network index 63efc88de..f78f64796 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network @@ -44,6 +44,30 @@ set_interfaces_lan_wan() { set_interface_wan "$wan_ifname" } +add_switch() { + local name=$1 + local reset=$2 + local enable=$3 + uci batch <