[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-a3cf2f4a3e73master
parent
dd35966d2e
commit
d2eb5f9c0f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue