From cee6ea67627376400a1ce8b9841fe67982651160 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Wed, 27 May 2015 14:18:22 +0100 Subject: [PATCH] cosmetic: it has been decreed that this was "just silly" --- weave | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weave b/weave index 6faab6ed..6fc353a2 100755 --- a/weave +++ b/weave @@ -245,7 +245,7 @@ random_mac() { ###################################################################### create_bridge() { - [ ! -d /sys/class/net/$BRIDGE ] && { + if [ ! -d /sys/class/net/$BRIDGE ] ; then ip link add name $BRIDGE type bridge # Set a random MAC address on the bridge. Current Linux # kernels already do this when creating a bridge, but there @@ -269,7 +269,7 @@ create_bridge() { # create a chain for masquerading run_iptables -t nat -N WEAVE >/dev/null 2>&1 || true add_iptables_rule nat POSTROUTING -j WEAVE - } + fi if [ ! "$1" = "--without-ethtool" ] ; then ethtool -K $BRIDGE tx off >/dev/null fi