From: Roy Marples Date: Thu, 31 Jul 2008 12:19:14 +0000 (+0000) Subject: Don't lookup the hostname if we don't have an ip address (INFORM). X-Git-Tag: v4.0.2~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a302de2f7a05a4904b31c117700e88cbba6d9ae4;p=thirdparty%2Fdhcpcd.git Don't lookup the hostname if we don't have an ip address (INFORM). --- diff --git a/dhcpcd-hooks/29-lookup-hostname b/dhcpcd-hooks/29-lookup-hostname index b9ce458a..90080ef0 100644 --- a/dhcpcd-hooks/29-lookup-hostname +++ b/dhcpcd-hooks/29-lookup-hostname @@ -2,6 +2,7 @@ lookup_hostname() { + [ -z "${new_ip_address}" ] && return 1 local h= # Silly ISC programs love to send error text to stdout if type dig >/dev/null 2>&1; then