From 7a53efe66c4be087142906c593ff4e131f792d95 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Fri, 24 Oct 2014 11:27:32 +0100 Subject: [PATCH] get error handling right --- weave | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/weave b/weave index 1df5e49b..eb62ad64 100755 --- a/weave +++ b/weave @@ -169,10 +169,10 @@ launch() { return 1 fi - ip link set $LOCAL_IFNAME master $BRIDGE - ip link set $LOCAL_IFNAME up - ip netns exec $NETNS ip link set $GUEST_IFNAME name $CONTAINER_IFNAME - ip netns exec $NETNS ip link set $CONTAINER_IFNAME up + ip link set $LOCAL_IFNAME master $BRIDGE && + ip link set $LOCAL_IFNAME up && + ip netns exec $NETNS ip link set $GUEST_IFNAME name $CONTAINER_IFNAME && + ip netns exec $NETNS ip link set $CONTAINER_IFNAME up && check_command_and_run ethtool ip netns exec $NETNS ethtool -K eth0 tx off >/dev/null }