Also avoid calling ethtool in expose and hide

Those two commands are used in the pre-docker phase when you setup your
weave bridge using create-bridge, e.g. inside /etc/network/interfaces.
This commit is contained in:
Dr. Stefan Schimanski committed 2015-01-29 13:21:49 +01:00
1 parent 17f6653cae
commit d77e3a4c22
1 file changed
+2 -2
+2 -2
View File
@@ -592,7 +592,7 @@ case "$COMMAND" in
expose)
[ $# -eq 1 ] || usage
validate_cidr $1
create_bridge
create_bridge --without-ethtool
if ! ip addr show dev $BRIDGE | grep -qF $1
then
ip addr add dev $BRIDGE $1
@@ -603,7 +603,7 @@ case "$COMMAND" in
hide)
[ $# -eq 1 ] || usage
validate_cidr $1
create_bridge
create_bridge --without-ethtool
if ip addr show dev $BRIDGE | grep -qF $1
then
ip addr del dev $BRIDGE $1