From 1b4166e79860098b838c6e24f0e6589678faa2e9 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 14 Aug 2011 18:52:45 +0000 Subject: [PATCH] integrate-distro.sh: Generate /etc/hosts from content entirely defined in the script --- scripts/integrate-distro.sh | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/scripts/integrate-distro.sh b/scripts/integrate-distro.sh index a1f2ec19..74926d00 100644 --- a/scripts/integrate-distro.sh +++ b/scripts/integrate-distro.sh @@ -476,14 +476,20 @@ EOT make_etc_hosts() { - cat /etc/hosts - - # TODO: there must be an easier frontend for gethostbyname() - local ftp_ip=`ping -c 1 ftp | sed '/PING/ !d; s/.*(\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)).*/\1/'` - - # TODO: undo or - better yet - obviate the need for this _cat<