diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-30 18:23:43 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-30 18:23:43 +0000 |
commit | 261d41a906a8afa3d8167b091ac0b891217d8251 (patch) | |
tree | e2da46ae42921bccb65adebaf3569af27c2e93fc /package/base-files/files/sbin/ifdown | |
parent | 44062d09b444adeb4a481954efc43c22ebdbc65a (diff) | |
download | mtk-20170518-261d41a906a8afa3d8167b091ac0b891217d8251.zip mtk-20170518-261d41a906a8afa3d8167b091ac0b891217d8251.tar.gz mtk-20170518-261d41a906a8afa3d8167b091ac0b891217d8251.tar.bz2 |
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/ifdown')
-rwxr-xr-x | package/base-files/files/sbin/ifdown | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 7c6a5b7..92cdfd2 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" |