summaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/base-files/etc
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-23 10:39:10 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-23 10:39:10 +0000
commit8c71102761475b959167cc84dcc73adc8c206d2b (patch)
tree0bed5dcc913abd510eb8ed5ea978f916851b94f5 /target/linux/atheros/base-files/etc
parent5d3c63551aac2aa027ecadca0081425b66971390 (diff)
[atheros] renaming of the IP175C switch driver brioke switch detection on the Dir-300 and others, fix it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22363 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/base-files/etc')
-rw-r--r--target/linux/atheros/base-files/etc/uci-defaults/network5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/atheros/base-files/etc/uci-defaults/network b/target/linux/atheros/base-files/etc/uci-defaults/network
index 89ea9a102..7e91e6ac2 100644
--- a/target/linux/atheros/base-files/etc/uci-defaults/network
+++ b/target/linux/atheros/base-files/etc/uci-defaults/network
@@ -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