[atheros] renaming of the IP175C switch driver brioke switch detection on the Dir...
[openwrt/svn-archive/archive.git] / target / linux / atheros / base-files / etc / uci-defaults / network
index 49c2a400571ef8555555315e19328a335cdf3676..7e91e6ac2c19f3e262564087e8c9f6964c8e751c 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