diff options
Diffstat (limited to 'main/bridge/bridge.pre-up')
-rwxr-xr-x | main/bridge/bridge.pre-up | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/bridge/bridge.pre-up b/main/bridge/bridge.pre-up index 995e258883..997bb74f2c 100755 --- a/main/bridge/bridge.pre-up +++ b/main/bridge/bridge.pre-up @@ -122,10 +122,11 @@ all) PORTS=$(all_ports);; *) PORTS="$IF_BRIDGE_PORTS";; esac -[ -z "$PORTS" ] && exit +[ -z "$PORTS" ] && ! env | grep -q "^IF_BRIDGE" && exit + case "$MODE" in -start) +start) brctl addbr $IFACE || exit 1 wait_ports set_bridge_opts |