diff options
Diffstat (limited to 'net.Linux/bridge.sh')
-rw-r--r-- | net.Linux/bridge.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net.Linux/bridge.sh b/net.Linux/bridge.sh index 89d5687e..a97e525a 100644 --- a/net.Linux/bridge.sh +++ b/net.Linux/bridge.sh @@ -56,7 +56,8 @@ bridge_pre_start() { eval set -- ${ports} for x in "$@" ; do ebegin "${x}" - if ! ifconfig "${x}" promisc up && brctl addif "${IFACE}" "${x}" ; then + ifconfig "${x}" promisc up + if ! brctl addif "${IFACE}" "${x}" ; then ifconfig "${x}" -promisc 2>/dev/null eend 1 return 1 @@ -66,6 +67,9 @@ bridge_pre_start() { eoutdent fi ) + + # Bring up the bridge + _up } bridge_post_stop() { |