2
0
forked from Ivasoft/openwrt

base-files: - add aliases to device by default (not ifname) - introduce option "layer" to select the target ifname to attach the alias to: - 3 use tun device (tun over bridge over device) fallback to bridge or device - 2 use bridge (bridge over device) fallback to device - 1 use device

SVN-Revision: 21655
This commit is contained in:
Jo-Philipp Wich
2010-06-02 00:22:13 +00:00
parent 8e39b122c9
commit 94db915196
2 changed files with 24 additions and 4 deletions

View 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
;;