From: thepeople 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.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=f45cb578c96d7262b08f0f5f45adfb86775d3e0d;hp=988734b10c6deea21c4cba16081790d98c130a48 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 --- diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 9eadad31e..883f8ec42 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" }