renaming of the IP175C switch driver brioke switch detection on the Dir-300 and other...
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 23 Jul 2010 10:39:10 +0000 (10:39 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 23 Jul 2010 10:39:10 +0000 (10:39 +0000)
SVN-Revision: 22363

target/linux/atheros/base-files/etc/uci-defaults/network

index 89ea9a102cf159be628b5c802aea123b484a1a7b..7e91e6ac2c19f3e262564087e8c9f6964c8e751c 100644 (file)
@@ -1,5 +1,8 @@
 #!/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