summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/hotplug.d/iface/10-routes
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/hotplug.d/iface/10-routes')
-rw-r--r--package/base-files/files/etc/hotplug.d/iface/10-routes3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/etc/hotplug.d/iface/10-routes b/package/base-files/files/etc/hotplug.d/iface/10-routes
index 118c1a665..14fb75eec 100644
--- a/package/base-files/files/etc/hotplug.d/iface/10-routes
+++ b/package/base-files/files/etc/hotplug.d/iface/10-routes
@@ -93,8 +93,9 @@ case "$ACTION" in
;;
ifdown)
# Bring down named aliases
+ local device=$(uci_get_state network "$INTERFACE" device)
local ifn
- for ifn in $(ifconfig | sed -ne "s/^\($DEVICE:[^[:space:]]\+\).*/\1/p"); do
+ for ifn in $(ifconfig | sed -ne "s/^\(\($DEVICE${device:+\|$device}\|br-$INTERFACE\):[^[:space:]]\+\).*/\1/p"); do
ifconfig "$ifn" down
done
;;