comparison src/script.c @ 5535:a0d828e25482 draft

Add --noconfigure option With this set dhcpcd will not configure anything on the host. The expectation is that a 3rd party script will instead.
author Roy Marples <roy@marples.name>
date Wed, 04 Nov 2020 14:18:48 +0000
parents 2737c3236e66
children 4fe5c2a71254
comparison
equal deleted inserted replaced
5534:605f7f9a20c0 5535:a0d828e25482
348 goto eexit; 348 goto eexit;
349 } 349 }
350 } 350 }
351 if (ifp->ctx->options & DHCPCD_DUMPLEASE && protocol != PROTO_LINK) 351 if (ifp->ctx->options & DHCPCD_DUMPLEASE && protocol != PROTO_LINK)
352 goto dumplease; 352 goto dumplease;
353 if (efprintf(fp, "if_configured=%s",
354 ifo->options & DHCPCD_CONFIGURE ? "true" : "false") == -1)
355 goto eexit;
353 if (efprintf(fp, "ifcarrier=%s", 356 if (efprintf(fp, "ifcarrier=%s",
354 ifp->carrier == LINK_UNKNOWN ? "unknown" : 357 ifp->carrier == LINK_UNKNOWN ? "unknown" :
355 ifp->carrier == LINK_UP ? "up" : "down") == -1) 358 ifp->carrier == LINK_UP ? "up" : "down") == -1)
356 goto eexit; 359 goto eexit;
357 if (efprintf(fp, "ifmetric=%d", ifp->metric) == -1) 360 if (efprintf(fp, "ifmetric=%d", ifp->metric) == -1)