[include] pass opkg offline root as command line arg, solves caching issues when...
[openwrt.git] / target / linux / atheros / base-files / etc / uci-defaults / network
index af7cfb0..7e91e6a 100644 (file)
@@ -1,7 +1,11 @@
 #!/bin/sh
-if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -a -x /sbin/swconfig ]; then
+if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -o \
+     -e "/sys/bus/mdio_bus/drivers/IC+ IP17xx/0:00" ] && \
+   [ -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
@@ -24,6 +28,7 @@ set network.lan.ifname=eth0.1
 set network.wan=interface
 set network.wan.ifname=eth0.2
 set network.wan.proto=dhcp
+commit network
 EOF
        HAS_SWITCH=1
 fi
@@ -33,6 +38,7 @@ fi
 set network.wan=interface
 set network.wan.ifname=eth1
 set network.wan.proto=dhcp
+commit network
 EOF
 }
 
This page took 0.0212 seconds and 4 git commands to generate.