diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-07-23 10:39:10 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-07-23 10:39:10 +0000 |
commit | d2eb5f9c0f2c777dfa30b6c6d405043f189be1ff (patch) | |
tree | 0bed5dcc913abd510eb8ed5ea978f916851b94f5 | |
parent | dd35966d2ee6acf13b6aa94ec59ea0949a675d01 (diff) | |
download | master-187ad058-d2eb5f9c0f2c777dfa30b6c6d405043f189be1ff.tar.gz master-187ad058-d2eb5f9c0f2c777dfa30b6c6d405043f189be1ff.tar.bz2 master-187ad058-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
-rw-r--r-- | target/linux/atheros/base-files/etc/uci-defaults/network | 5 |
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 |