From dfc9dc19f83383b1896fbff1d04e8073106cfed0 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Tue, 29 Jan 2013 22:08:32 -0800 Subject: [PATCH] IPv6: Add IPv6 address to router in /etc/hosts --- patches/systemvm/debian/config/etc/init.d/cloud-early-config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ebe2fa4ab5b..db2fcc2046e 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