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.lede-project.org./?a=commitdiff_plain;h=6103f8835845843cd0ee841b79f833e431b23513;p=openwrt%2Fstaging%2Fsvanheule.git 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" }