X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d9494637a8729f3ec6c4f940c190d8864acd4ebb..8ade1960dd8d45693d2502bd453041b258be82bc:/package/base-files/files/sbin/ifdown diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 7c6a5b706..92cdfd2b0 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"