From 6103f8835845843cd0ee841b79f833e431b23513 Mon Sep 17 00:00:00 2001 From: Travis Kemen Date: Wed, 29 Oct 2008 20:31:14 +0000 Subject: [PATCH] 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 --- package/base-files/files/sbin/ifdown | 1 + 1 file changed, 1 insertion(+) 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" }