]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Apply command line options to profile.
authorRoy Marples <roy@marples.name>
Fri, 8 Jul 2016 19:44:18 +0000 (19:44 +0000)
committerRoy Marples <roy@marples.name>
Fri, 8 Jul 2016 19:44:18 +0000 (19:44 +0000)
Fixes [87d9d6b583].

dhcpcd.c

index 3041cf7f1deaef941c65342e9f262133bdfb9803..d47a9ab882815b9ab2c85a1d55924f18a57e1269 100644 (file)
--- 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;
 }