]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcpcd: daemomize if no valid interfaces found
authorRoy Marples <roy@marples.name>
Thu, 16 Apr 2020 22:27:47 +0000 (23:27 +0100)
committerRoy Marples <roy@marples.name>
Thu, 16 Apr 2020 22:27:47 +0000 (23:27 +0100)
But if we're waitig for an ip address we still wait.

src/dhcpcd.c

index 7bf52f4f48d7559ce783a988439a73428737f70c..0059f47b1e492e19b6a5b70e9930a7d6703b8700 100644 (file)
@@ -2274,6 +2274,7 @@ printpidfile:
                        loglevel = ctx.options & DHCPCD_INACTIVE ?
                            LOG_DEBUG : LOG_ERR;
                        logmessage(loglevel, "no valid interfaces found");
+                       dhcpcd_daemonise(&ctx);
                } else
                        goto exit_failure;
                if (!(ctx.options & DHCPCD_LINK)) {