summaryrefslogtreecommitdiff
path: root/target/linux/atheros
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
commit878267db016c17df83a2f685e127e9926be77a1b (patch)
tree697583373871da96f41c61179a715ce4aa6ce184 /target/linux/atheros
parentce8858061bafe9dcf89dc6a60b446e857cb78862 (diff)
downloadmtk-20170518-878267db016c17df83a2f685e127e9926be77a1b.zip
mtk-20170518-878267db016c17df83a2f685e127e9926be77a1b.tar.gz
mtk-20170518-878267db016c17df83a2f685e127e9926be77a1b.tar.bz2
renaming of the IP175C switch driver brioke switch detection on the Dir-300 and others, fix it
SVN-Revision: 22363
Diffstat (limited to 'target/linux/atheros')
-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 89ea9a1..7e91e6a 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