system/xen: Contrib script bugfix.

Signed-off-by: Mario Preksavec <mario@slackware.hr>
This commit is contained in:
Mario Preksavec 2015-04-14 22:27:05 +02:00 committed by Willy Sudiarto Raharjo
parent dcc0af4177
commit 91da7544ba
1 changed files with 4 additions and 0 deletions

View File

@ -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