From fc88b30ea4ea6670fee0ef8e03468c23f04f8806 Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 26 Dec 2006 22:15:36 +0000 Subject: [PATCH] 2006-12-26 22:15:34 by steve Add stub /etc/hosts file for new instances which use DHCP. See #484683 --- hooks/centos4/50-setup-hostname | 20 ++++++++++++++++++++ hooks/dapper/50-setup-hostname | 20 ++++++++++++++++++++ hooks/debian/50-setup-hostname | 20 ++++++++++++++++++++ hooks/edgy/50-setup-hostname | 20 ++++++++++++++++++++ hooks/gentoo/50-setup-hostname | 20 ++++++++++++++++++++ 5 files changed, 100 insertions(+) diff --git a/hooks/centos4/50-setup-hostname b/hooks/centos4/50-setup-hostname index 857e4e7..e63509b 100755 --- a/hooks/centos4/50-setup-hostname +++ b/hooks/centos4/50-setup-hostname @@ -50,6 +50,26 @@ if [ -z "${dhcp}" ]; then # IPv6 stuff. grep '\(::\|IPv6\)' /etc/hosts >> ${prefix}/etc/hosts + +else + + # + # Stub /etc/hosts for DHCP clients. + # + cat >> ${prefix}/etc/hosts <> ${prefix}/etc/hosts + +else + + # + # Stub /etc/hosts for DHCP clients. + # + cat >> ${prefix}/etc/hosts <> ${prefix}/etc/hosts + +else + + # + # Stub /etc/hosts for DHCP clients. + # + cat >> ${prefix}/etc/hosts <> ${prefix}/etc/hosts + +else + + # + # Stub /etc/hosts for DHCP clients. + # + cat >> ${prefix}/etc/hosts <> ${prefix}/etc/hosts + +else + + # + # Stub /etc/hosts for DHCP clients. + # + cat >> ${prefix}/etc/hosts <