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]} ipv4=${ipv4[$name]}
elif [ ! -z ${ipv4[::default]} ]; then elif [ ! -z ${ipv4[::default]} ]; then
ipv4=${ipv4[::default]} ipv4=${ipv4[::default]}
else
ipv4=
fi fi
if [ ! -z ${ipv6[$name]} ]; then if [ ! -z ${ipv6[$name]} ]; then
ipv6=${ipv6[$name]} ipv6=${ipv6[$name]}
elif [ ! -z ${ipv6[::default]} ]; then elif [ ! -z ${ipv6[::default]} ]; then
ipv6=${ipv6[::default]} ipv6=${ipv6[::default]}
else
ipv6=
fi fi
# Domain can have more then one vif # Domain can have more then one vif