summaryrefslogtreecommitdiff
path: root/package/base-files/files/sbin/ifdown
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/sbin/ifdown')
-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"