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 2013/01/30 07:22:11 UTC
[5/5] git commit: IPv6: Add IPv6 address to router in /etc/hosts
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 <sh...@citrix.com>
Authored: Tue Jan 29 22:08:32 2013 -0800
Committer: Sheng Yang <sh...@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