cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yas...@apache.org
Subject [5/5] git commit: IPv6: Add IPv6 address to router in /etc/hosts
Date Wed, 30 Jan 2013 06:22:11 GMT
Updated Branches:
  refs/heads/ipv6 0b62fc4c1 -> dfc9dc19f


IPv6: Add IPv6 address to router in /etc/hosts


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

Branch: refs/heads/ipv6
Commit: dfc9dc19f83383b1896fbff1d04e8073106cfed0
Parents: 4640b82
Author: Sheng Yang <sheng.yang@citrix.com>
Authored: Tue Jan 29 22:08:32 2013 -0800
Committer: Sheng Yang <sheng.yang@citrix.com>
Committed: Tue Jan 29 22:08:32 2013 -0800

----------------------------------------------------------------------
 .../debian/config/etc/init.d/cloud-early-config    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/dfc9dc19/patches/systemvm/debian/config/etc/init.d/cloud-early-config
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
index ebe2fa4..db2fcc2 100755
--- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config
+++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
@@ -738,7 +738,8 @@ setup_dhcpsrvr() {
   fi
 
   sed -i  /gateway/d /etc/hosts
-  echo "$ETH0_IP $NAME" >> /etc/hosts
+  [ $ETH0_IP ] && echo "$ETH0_IP $NAME" >> /etc/hosts
+  [ $ETH0_IP6 ] && echo "$ETH0_IP6 $NAME" >> /etc/hosts
 
   enable_svc dnsmasq 1
   enable_svc haproxy 0


Mime
View raw message