adjust switch default configs for the swconfig api change
authorFelix Fietkau <nbd@openwrt.org>
Mon, 18 Jan 2010 00:38:08 +0000 (00:38 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 18 Jan 2010 00:38:08 +0000 (00:38 +0000)
SVN-Revision: 19209

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

index f670d149cb587565fafb0a9bc4b018e0a3822ba5..0d17a2025f5da83beaae5630dc2526489ed49f7a 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 49c2a400571ef8555555315e19328a335cdf3676..89ea9a102cf159be628b5c802aea123b484a1a7b 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