summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-16 23:27:47 +0100
committerRoy Marples <roy@marples.name>2020-04-16 23:27:47 +0100
commit541d1083777125c32c789bf282a5232f832cc0fc (patch)
tree5903880ea45e6f0f00c11dc750107ffbb7840cc1 /src
parentbe4dac84ede995559aed2bb85c23e817d5e67a04 (diff)
downloaddhcpcd-541d1083777125c32c789bf282a5232f832cc0fc.tar.xz
dhcpcd: daemomize if no valid interfaces found
But if we're waitig for an ip address we still wait.
Diffstat (limited to 'src')
-rw-r--r--src/dhcpcd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index 7bf52f4f..0059f47b 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -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)) {