From: Travis Kemen Date: Wed, 29 Oct 2008 20:31:14 +0000 (+0000) Subject: remove /tmp/resolv.conf.auto when ifup -a is called so that any old dns servers no... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=1704830b3883edaf257632c06865c8879ff06cd4;ds=sidebyside 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 --- 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 "; 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" }