create bridge in 'weave expose/hide'

since they really need the bridge
This commit is contained in:
Matthias Radestock committed 2014-09-13 17:44:29 +01:00
1 parent 1fac995248
commit a53c817b8d
1 file changed
+2
+2
View File
@@ -135,6 +135,7 @@ case "$COMMAND" in
[ $# -gt 0 ] || usage
IPADDR=$1
shift 1
create_bridge
if ! ip addr list dev $BRIDGE | grep -qF $IPADDR
then
ip addr add dev $BRIDGE $IPADDR
@@ -145,6 +146,7 @@ case "$COMMAND" in
[ $# -gt 0 ] || usage
IPADDR=$1
shift 1
create_bridge
if ip addr list dev $BRIDGE | grep -qF $IPADDR
then
ip addr del dev $BRIDGE $IPADDR