aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2015-04-14 22:27:05 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-04-19 11:24:11 +0700
commit91da7544baa3c08d2d2285e81a87f205825e3053 (patch)
tree5b7dc8ba5a68c0148a732c0229b165f1cc0e53d9 /system
parentdcc0af41777de0cd08505ad503aeebc0a3933cd0 (diff)
system/xen: Contrib script bugfix.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
Diffstat (limited to 'system')
-rw-r--r--system/xen/openvswitch/openvswitch-clean.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/xen/openvswitch/openvswitch-clean.sh b/system/xen/openvswitch/openvswitch-clean.sh
index 2d02d0ea44f8e..f43aee16b8697 100644
--- a/system/xen/openvswitch/openvswitch-clean.sh
+++ b/system/xen/openvswitch/openvswitch-clean.sh
@@ -25,12 +25,16 @@ if [ -f /etc/xen/openvswitch.conf ]; then
ipv4=${ipv4[$name]}
elif [ ! -z ${ipv4[::default]} ]; then
ipv4=${ipv4[::default]}
+ else
+ ipv4=
fi
if [ ! -z ${ipv6[$name]} ]; then
ipv6=${ipv6[$name]}
elif [ ! -z ${ipv6[::default]} ]; then
ipv6=${ipv6[::default]}
+ else
+ ipv6=
fi
# Domain can have more then one vif