aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-18 00:38:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-18 00:38:08 +0000
commita518f9c09f9be99ccad2521310ecc7b200ab399f (patch)
tree55ad654a02df7ab5044e5a2037224f282e096431 /target
parent45b797478c52ca1408bf2a2d13b0c967b92f2bc1 (diff)
downloadupstream-a518f9c09f9be99ccad2521310ecc7b200ab399f.tar.gz
upstream-a518f9c09f9be99ccad2521310ecc7b200ab399f.tar.bz2
upstream-a518f9c09f9be99ccad2521310ecc7b200ab399f.zip
adjust switch default configs for the swconfig api change
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19209 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network3
-rw-r--r--target/linux/atheros/base-files/etc/uci-defaults/network1
2 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network b/target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network
index f670d149cb..0d17a2025f 100644
--- a/target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network
+++ b/target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network
@@ -15,7 +15,8 @@ config interface wan
option ifname eth1
option proto dhcp
-config switch eth0
+config switch
+ option name eth0
option reset 1
option enable_vlan 1
diff --git a/target/linux/atheros/base-files/etc/uci-defaults/network b/target/linux/atheros/base-files/etc/uci-defaults/network
index 49c2a40057..89ea9a102c 100644
--- a/target/linux/atheros/base-files/etc/uci-defaults/network
+++ b/target/linux/atheros/base-files/etc/uci-defaults/network
@@ -2,6 +2,7 @@
if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -a -x /sbin/swconfig ]; then
uci batch <<EOF
set network.eth0=switch
+set network.eth0.name=eth0
set network.eth0.reset=1
set network.eth0.enable_vlan=1
set network.eth0_1=switch_vlan