From d156518f0872807bfde07b1948e9426f1f3b6dac Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 30 May 2010 18:23:43 +0000 Subject: [package] base-files: - use add_dns() and remove_dns() for when changing resolv.conf.auto for static or dhcp interfaces - force 0644 permissions when creating resolv.conf.auto, fixes dnsmasq permissions denied problem with pppd interfaces - revert dns servers in /sbin/ifdown - bump package revision git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21638 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/sbin/ifdown | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package/base-files/files/sbin/ifdown') diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 7c6a5b7061..92cdfd2b02 100755 --- a/package/base-files/files/sbin/ifdown +++ b/package/base-files/files/sbin/ifdown @@ -40,6 +40,9 @@ done config_get iftype "$cfg" type [ "bridge" = "$iftype" ] && brctl delbr "$ifname" >/dev/null 2>/dev/null +# remove the interface's dns entries +remove_dns "$cfg" + # remove the interface's network state uci_revert_state network "$1" -- cgit v1.2.3