diff options
| author | Roy Marples <roy@marples.name> | 2015-07-13 17:40:54 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-07-13 17:40:54 +0000 |
| commit | 2862d340c7168d6a65552638a7fe627b2c094d98 (patch) | |
| tree | af4bf91ebe8e18b383ef04abc35bd4f66654569c /dhcpcd.c | |
| parent | c20dab452aabaf13f25991911c18d7f817eda534 (diff) | |
| download | dhcpcd-2862d340c7168d6a65552638a7fe627b2c094d98.tar.xz | |
Add a noup directive to stop master mode bringing an interface up.
Fixes [96c6bf4e5f].
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -904,7 +904,9 @@ dhcpcd_prestartinterface(void *arg) struct interface *ifp = arg; pre_start(ifp); - if (if_up(ifp) == -1) + if ((!(ifp->ctx->options & DHCPCD_MASTER) || + ifp->options->options & DHCPCD_IF_UP) && + if_up(ifp) == -1) logger(ifp->ctx, LOG_ERR, "%s: if_up: %m", ifp->name); if (ifp->options->options & DHCPCD_LINK && |
