aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-05-30 18:23:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-05-30 18:23:43 +0000
commit261d41a906a8afa3d8167b091ac0b891217d8251 (patch)
treee2da46ae42921bccb65adebaf3569af27c2e93fc /package/base-files/files/sbin
parent44062d09b444adeb4a481954efc43c22ebdbc65a (diff)
downloadupstream-261d41a906a8afa3d8167b091ac0b891217d8251.tar.gz
upstream-261d41a906a8afa3d8167b091ac0b891217d8251.tar.bz2
upstream-261d41a906a8afa3d8167b091ac0b891217d8251.zip
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
SVN-Revision: 21638
Diffstat (limited to 'package/base-files/files/sbin')
-rwxr-xr-xpackage/base-files/files/sbin/ifdown3
1 files changed, 3 insertions, 0 deletions
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"