diff options
| author | Roy Marples <roy@marples.name> | 2020-12-28 01:59:57 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-12-28 01:59:57 +0000 |
| commit | dec1f731d60738a86d7e35004a95ce10a40ea0a4 (patch) | |
| tree | 95b3c61bce68ab8c8aff108b5523e71c6d75bc65 | |
| parent | 2bd74fa2acd005e68b6fcdd6d3132ab034440515 (diff) | |
| download | dhcpcd-dec1f731d60738a86d7e35004a95ce10a40ea0a4.tar.xz | |
script: ignore inactive interfaces for ordering
| -rw-r--r-- | src/script.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
