aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/base-files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-07-23 10:39:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-07-23 10:39:10 +0000
commitd2eb5f9c0f2c777dfa30b6c6d405043f189be1ff (patch)
tree0bed5dcc913abd510eb8ed5ea978f916851b94f5 /target/linux/atheros/base-files
parentdd35966d2ee6acf13b6aa94ec59ea0949a675d01 (diff)
downloadupstream-d2eb5f9c0f2c777dfa30b6c6d405043f189be1ff.tar.gz
upstream-d2eb5f9c0f2c777dfa30b6c6d405043f189be1ff.tar.bz2
upstream-d2eb5f9c0f2c777dfa30b6c6d405043f189be1ff.zip
[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')
-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 89ea9a102c..7e91e6ac2c 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