aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2008-10-29 20:31:14 +0000
committerTravis Kemen <thepeople@openwrt.org>2008-10-29 20:31:14 +0000
commit7efe4d1cbfa3c1a0d3cb0ff1b78559fc32ca8c4e (patch)
tree6c24f84efd77d67228e21cd8863a2d8f93526b4e
parent42923af70f3cf1c86267a89e386db56cce1caf37 (diff)
downloadupstream-7efe4d1cbfa3c1a0d3cb0ff1b78559fc32ca8c4e.tar.gz
upstream-7efe4d1cbfa3c1a0d3cb0ff1b78559fc32ca8c4e.tar.bz2
upstream-7efe4d1cbfa3c1a0d3cb0ff1b78559fc32ca8c4e.zip
remove /tmp/resolv.conf.auto when ifup -a is called so that any old dns servers no longer in the config get cleared
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13082 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/base-files/files/sbin/ifdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown
index 9eadad31e8..883f8ec428 100755
--- a/package/base-files/files/sbin/ifdown
+++ b/package/base-files/files/sbin/ifdown
@@ -4,6 +4,7 @@
. /etc/functions.sh
[ $# = 0 ] && { echo " $0 <group>"; exit; }
[ "x$1" = "x-a" ] && {
+ [ -e "/tmp/resolv.conf.auto" ] && rm /tmp/resolv.conf.auto
config_cb() {
[ interface != "$1" -o -z "$2" ] || eval "$0 $2"
}