From: Roy Marples Date: Wed, 20 Nov 2013 17:36:41 +0000 (+0000) Subject: When running for a single interface, don't set WAITIP if we are X-Git-Tag: v6.2.0~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42c638c5d60c65f5818bb2c881b1e96b22c8d9ca;p=thirdparty%2Fdhcpcd.git When running for a single interface, don't set WAITIP if we are backgrounding immediatley. --- diff --git a/dhcpcd.c b/dhcpcd.c index 6ea8f1de..109c4494 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -1349,7 +1349,7 @@ main(int argc, char **argv) /* When running dhcpcd against a single interface, we need to retain * the old behaviour of waiting for an IP address */ - if (ifc == 1) + if (ifc == 1 && !(options & DHCPCD_BACKGROUND)) options |= DHCPCD_WAITIP; /* RTM_NEWADDR goes through the link socket as well which we