From dec1f731d60738a86d7e35004a95ce10a40ea0a4 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 28 Dec 2020 01:59:57 +0000 Subject: [PATCH] script: ignore inactive interfaces for ordering --- src/script.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/script.c b/src/script.c index bf1e5152..5f404eac 100644 --- a/src/script.c +++ b/src/script.c @@ -392,6 +392,8 @@ make_env(struct dhcpcd_ctx *ctx, const struct interface *ifp, rb_tree_init(&ifaces, &rt_compare_proto_ops); TAILQ_FOREACH(ifp2, ifp->ctx->ifaces, next) { + if (!ifp2->active) + continue; rt = rt_new(UNCONST(ifp2)); if (rt == NULL) goto eexit; -- 2.47.2