]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't lookup the hostname if we don't have an ip address (INFORM).
authorRoy Marples <roy@marples.name>
Thu, 31 Jul 2008 12:19:14 +0000 (12:19 +0000)
committerRoy Marples <roy@marples.name>
Thu, 31 Jul 2008 12:19:14 +0000 (12:19 +0000)
dhcpcd-hooks/29-lookup-hostname

index b9ce458a927ed5e9cdc2fc98e7ec3b173460d792..90080ef005cb1e29f53bd85424f7ac1234646245 100644 (file)
@@ -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