happen in a custom OS hook:
dhcpcd service marked inactive && dhcpcd service starts
dependant services are not started because dhcpcd is inactive (not stopped)
- dhcpcd hook tests $if_oneup && $if_ipwaited
+ dhcpcd hook tests if $if_up = true and $af_waiting is empty or unset.
if true, mark the dhcpcd service as started and then start dependencies
if false and the dhcpcd service was previously started, mark as inactive and
stop any dependant services.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd May 14, 2015
+.Dd June 9, 2015
.Dt DHCPCD-RUN-HOOKS 8
.Os
.Sh NAME
.Ev interface
is down, otherwise
.Dv false .
-.It Ev $if_oneup
-.Dv true
-if any interface is up, otherwise false.
+.It Ev $af_waiting
+Address family waiting for, as defined in
+.Xr dhcpcd.conf 5 .
.It Ev $profile
the name of the profile selected from
.Xr dhcpcd.conf 5 .
snprintf(env[elen++], e, "if_afwaiting=%d", af);
}
if ((af = dhcpcd_afwaiting(ifp->ctx)) != AF_MAX) {
+ TAILQ_FOREACH(ifp2, ifp->ctx->ifaces, next) {
+ if ((af = dhcpcd_ifafwaiting(ifp2)) != AF_MAX)
+ break;
+ }
+ }
+ if (af != AF_MAX) {
e = 20;
EMALLOC(elen, e);
snprintf(env[elen++], e, "af_waiting=%d", af);