Merge pull request #377 from sttts/expose-hide-without-ethtool

Also avoid calling ethtool in expose and hide
This commit is contained in:
rade committed 2015-01-29 23:26:30 +00:00
commit 99770c564b
1 file changed
+2 -2
+2 -2
View File
@@ -592,7 +592,7 @@ case "$COMMAND" in
expose) expose)
[ $# -eq 1 ] || usage [ $# -eq 1 ] || usage
validate_cidr $1 validate_cidr $1
create_bridge create_bridge --without-ethtool
if ! ip addr show dev $BRIDGE | grep -qF $1 if ! ip addr show dev $BRIDGE | grep -qF $1
then then
ip addr add dev $BRIDGE $1 ip addr add dev $BRIDGE $1
@@ -603,7 +603,7 @@ case "$COMMAND" in
hide) hide)
[ $# -eq 1 ] || usage [ $# -eq 1 ] || usage
validate_cidr $1 validate_cidr $1
create_bridge create_bridge --without-ethtool
if ip addr show dev $BRIDGE | grep -qF $1 if ip addr show dev $BRIDGE | grep -qF $1
then then
ip addr del dev $BRIDGE $1 ip addr del dev $BRIDGE $1