X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d9494637a8729f3ec6c4f940c190d8864acd4ebb..4e5d6449f66eb7b5a253be36c7d5f0e974e15613:/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"