changeset 2161:52f705b19a29 draft

When running for a single interface, don't set WAITIP if we are backgrounding immediatley.
author Roy Marples <roy@marples.name>
date Wed, 20 Nov 2013 17:36:41 +0000
parents 61f868a469f2
children 2f7b7d99fd37
files dhcpcd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd.c	Wed Nov 20 11:37:25 2013 +0000
+++ b/dhcpcd.c	Wed Nov 20 17:36:41 2013 +0000
@@ -1349,7 +1349,7 @@
 
 	/* 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