Merge pull request #377 from sttts/expose-hide-without-ethtool
Also avoid calling ethtool in expose and hide
This commit is contained in:
commit
99770c564b
1 file changed
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user