1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-27 01:41:05 +02:00

[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
This commit is contained in:
jow 2010-07-23 10:39:10 +00:00
parent 5d3c63551a
commit 8c71102761

View 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