From 91da7544baa3c08d2d2285e81a87f205825e3053 Mon Sep 17 00:00:00 2001 From: Mario Preksavec Date: Tue, 14 Apr 2015 22:27:05 +0200 Subject: [PATCH] system/xen: Contrib script bugfix. Signed-off-by: Mario Preksavec --- system/xen/openvswitch/openvswitch-clean.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/xen/openvswitch/openvswitch-clean.sh b/system/xen/openvswitch/openvswitch-clean.sh index 2d02d0ea44..f43aee16b8 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