[package] base-files:
[openwrt.git] / package / base-files / files / etc / hotplug.d / iface / 10-routes
index 118c1a6..14fb75e 100644 (file)
@@ -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
        ;;
This page took 0.020836 seconds and 4 git commands to generate.