You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2014/05/14 00:18:33 UTC

git commit: updated refs/heads/4.4-forward to d32f5c7

Repository: cloudstack
Updated Branches:
  refs/heads/4.4-forward 2334d9a1f -> d32f5c70d


CLOUDSTACK-6241: Fix default route for IPv6 network when IPv4 not used
(cherry picked from commit e406adc0810b22ded0964080946f019be1337b52)


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d32f5c70
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d32f5c70
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d32f5c70

Branch: refs/heads/4.4-forward
Commit: d32f5c70d26ce82561bbdce962fd881a644ab81c
Parents: 2334d9a
Author: Sheng Yang <sh...@citrix.com>
Authored: Fri Mar 14 13:36:43 2014 -0700
Committer: Sheng Yang <sh...@citrix.com>
Committed: Tue May 13 15:16:46 2014 -0700

----------------------------------------------------------------------
 systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d32f5c70/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh b/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
index 8e7ddac..70c95a8 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
+++ b/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
@@ -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