diff options
author | Travis Kemen <thepeople@openwrt.org> | 2008-10-29 20:31:14 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2008-10-29 20:31:14 +0000 |
commit | 6103f8835845843cd0ee841b79f833e431b23513 (patch) | |
tree | 9ce3c5ed1be69622be5f99a69a2f814829f96e79 /package/base-files/files | |
parent | 5a97325e73433cfd37bc1fd2a78612ec93f7eab4 (diff) | |
download | mtk-20170518-6103f8835845843cd0ee841b79f833e431b23513.zip mtk-20170518-6103f8835845843cd0ee841b79f833e431b23513.tar.gz mtk-20170518-6103f8835845843cd0ee841b79f833e431b23513.tar.bz2 |
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
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/sbin/ifdown | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 9eadad3..883f8ec 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 <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" } |