summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-07-08 19:44:18 +0000
committerRoy Marples <roy@marples.name>2016-07-08 19:44:18 +0000
commit8a3872e96f97dd3ff3b33ad98e0766f4d16091b9 (patch)
tree44133efb6722369d8c1c52544dc0e86feb8d1bed /dhcpcd.c
parent4dbfde2bc0bf353e58793a027364a4fd7bbcc87b (diff)
downloaddhcpcd-8a3872e96f97dd3ff3b33ad98e0766f4d16091b9.tar.xz
Apply command line options to profile.
Fixes [87d9d6b583].
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 3041cf7f..d47a9ab8 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -582,8 +582,11 @@ dhcpcd_selectprofile(struct interface *ifp, const char *profile)
free_options(ifp->options);
ifp->options = ifo;
- if (profile)
+ if (profile) {
+ add_options(ifp->ctx, ifp->name, ifp->options,
+ ifp->ctx->argc, ifp->ctx->argv);
configure_interface1(ifp);
+ }
return 1;
}