aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
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
commit6103f8835845843cd0ee841b79f833e431b23513 (patch)
tree9ce3c5ed1be69622be5f99a69a2f814829f96e79 /package/base-files
parent5a97325e73433cfd37bc1fd2a78612ec93f7eab4 (diff)
downloadupstream-6103f8835845843cd0ee841b79f833e431b23513.tar.gz
upstream-6103f8835845843cd0ee841b79f833e431b23513.tar.bz2
upstream-6103f8835845843cd0ee841b79f833e431b23513.zip
remove /tmp/resolv.conf.auto when ifup -a is called so that any old dns servers no longer in the config get cleared
SVN-Revision: 13082
Diffstat (limited to 'package/base-files')
-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"
}