CLOUDSTACK-6241: Fix default route for IPv6 network when IPv4 not used

(cherry picked from commit e406adc081)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
This commit is contained in:
Sheng Yang 2014-03-14 13:36:43 -07:00 committed by Animesh Chaturvedi
parent 5973a42691
commit cd2ba90fae
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ then
echo "$ipv6 $host" >> $HOSTS
fi
if [ "$dflt" != "" ]
if [ "$dflt" != "" -a "$ipv4" != "" ]
then
#make sure dnsmasq looks into options file
sed -i /dhcp-optsfile/d /etc/dnsmasq.conf