aboutsummaryrefslogtreecommitdiffstats
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/ifdown6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown
index 7cc87deb77..9eadad31e8 100755
--- a/package/base-files/files/sbin/ifdown
+++ b/package/base-files/files/sbin/ifdown
@@ -64,4 +64,8 @@ config_get iftype "$cfg" type
# remove the interface's network state
uci_revert_state network "$1"
-
+# revert aliases state as well
+config_get aliases "$1" aliases
+for config in $aliases; do
+ uci_revert_state network "$config"
+done