don't fail if nslookup is not found

When nslookup is not available, execution would stop. This patch moves the
check for nslookup and the _get_fqdn function into the ./new script (since
this is the only place where it's used) and we don't fail any more but try
to find out our FQDN without nslookup.

Signed-off-by: Christian Kujau <lists@nerdbynature.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Christian Kujau
2009-07-20 11:31:39 +02:00
committed by Christoph Hellwig
parent aa1810a797
commit 3ba1b10a87
3 changed files with 11 additions and 11 deletions
-8
View File
@@ -330,14 +330,6 @@ _get_pids_by_name()
-e "/[0-9]:[0-9][0-9] *$1 /s/ .*//p"
}
# fqdn for localhost
#
_get_fqdn()
{
host=`hostname`
$NSLOOKUP_PROG $host | $AWK_PROG '{ if ($1 == "Name:") print $2 }'
}
# fix malloc libs output
#
_fix_malloc()