aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-04-06 22:46:15 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-04-06 22:46:15 +0000
commitd328f8c6b6508f5966e1f71ef808b4f2dc696f0e (patch)
tree2ea4ba92f67bb9718198ff00b894482167b93e42 /target/linux/atheros
parentd21b23ab5efb5d23343b28d6166646b2b8a18291 (diff)
downloadupstream-d328f8c6b6508f5966e1f71ef808b4f2dc696f0e.tar.gz
upstream-d328f8c6b6508f5966e1f71ef808b4f2dc696f0e.tar.bz2
upstream-d328f8c6b6508f5966e1f71ef808b4f2dc696f0e.zip
[atheros] fix failsafe ip deconfig on AR23xx devices without ADM or Marvell switch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20733 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros')
-rw-r--r--target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros b/target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros
index 9807365c2a..434103e172 100644
--- a/target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros
+++ b/target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros
@@ -29,5 +29,7 @@ preinit_ip_deconfig() {
-e "/sys/bus/mdio_bus/drivers/Marvell 88E6060/0:10" ]; then
vconfig rem eth0.1 2>/dev/null
ifconfig $pi_ifname down
+ elif [ -n "$pi_ifname" ]; then
+ ifconfig $pi_ifname 0.0.0.0
fi
}