25 lines
582 B
Diff
25 lines
582 B
Diff
|
Index: dhcpcd.c
|
||
|
==================================================================
|
||
|
--- a/dhcpcd.c
|
||
|
+++ b/dhcpcd.c
|
||
|
@@ -747,14 +747,14 @@
|
||
|
if (ifp->hwlen != 0)
|
||
|
memcpy(ifl->hwaddr, ifp->hwaddr, ifl->hwlen);
|
||
|
} else {
|
||
|
TAILQ_REMOVE(ifs, ifp, next);
|
||
|
TAILQ_INSERT_TAIL(ctx->ifaces, ifp, next);
|
||
|
- }
|
||
|
- if (action == 1) {
|
||
|
- init_state(ifp, ctx->argc, ctx->argv);
|
||
|
- start_interface(ifp);
|
||
|
+ if (action == 1) {
|
||
|
+ init_state(ifp, ctx->argc, ctx->argv);
|
||
|
+ start_interface(ifp);
|
||
|
+ }
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* Free our discovered list */
|
||
|
while ((ifp = TAILQ_FIRST(ifs))) {
|
||
|
|