remove /tmp/resolv.conf.auto when ifup -a is called so that any old dns servers no...
authorthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 29 Oct 2008 20:31:14 +0000 (20:31 +0000)
committerthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 29 Oct 2008 20:31:14 +0000 (20:31 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13082 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/sbin/ifdown

index 9eadad31e8cf47ac995903839b9016d502eba95e..883f8ec42893bc8c3fb70286a6674f1430deeeac 100755 (executable)
@@ -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"
        }