# HG changeset patch # User Roy Marples # Date 1598852939 -3600 # Node ID c2b796cf7e9431424b02e6db4f280a674d14f75a # Parent 4729f8db7842ba14d0cdd477e8965d6a6d5f2fcf dhcpcd: Adjust prior to ensure options exist for active interfaces before timeouts diff -r 4729f8db7842 -r c2b796cf7e94 src/dhcpcd.c --- a/src/dhcpcd.c Sun Aug 30 09:41:47 2020 +0100 +++ b/src/dhcpcd.c Mon Aug 31 06:48:59 2020 +0100 @@ -1158,7 +1158,6 @@ { struct interface *ifp = arg; - dhcpcd_initstate(ifp, 0); run_preinit(ifp); dhcpcd_prestartinterface(ifp); } @@ -1225,9 +1224,11 @@ continue; } TAILQ_INSERT_TAIL(ctx->ifaces, ifp, next); - if (ifp->active) + if (ifp->active) { + dhcpcd_initstate(ifp, 0); eloop_timeout_add_sec(ctx->eloop, 0, dhcpcd_initprestartinterface, ifp); + } } free(ifaces);