adjust switch default configs for the swconfig api change
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 18 Jan 2010 00:38:08 +0000 (00:38 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 18 Jan 2010 00:38:08 +0000 (00:38 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19209 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network
target/linux/atheros/base-files/etc/uci-defaults/network

index f670d14..0d17a20 100644 (file)
@@ -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
 
index 49c2a40..89ea9a1 100644 (file)
@@ -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
This page took 0.026783 seconds and 4 git commands to generate.