| Index: src/main.c
|
| diff --git a/src/main.c b/src/main.c
|
| index a4d2fea7a809ff3540c82028d53b0077de71327f..85bbbd4e5b9fe71890218eee4c050c2e635e09eb 100644
|
| --- a/src/main.c
|
| +++ b/src/main.c
|
| @@ -56,6 +56,7 @@ static gchar **option_devices = NULL;
|
| static gchar **option_plugins = NULL;
|
| static gchar **option_nodevices = NULL;
|
| static gchar **option_noplugins = NULL;
|
| +static gchar **option_profiles = NULL;
|
| static gchar *option_wifi = NULL;
|
| static gchar *option_keymatter = NULL;
|
| static gchar *option_modemmanagers = NULL;
|
| @@ -94,6 +95,10 @@ static GOptionEntry options[] = {
|
| "Specify plugins not to load"
|
| " (can be repeated)",
|
| "NAME" },
|
| + { "push", 'u', 0, G_OPTION_ARG_STRING_ARRAY, &option_profiles,
|
| + "Specify profiles to push"
|
| + " (can be repeated)",
|
| + "NAME" },
|
| { "keymatter", 'k', 0, G_OPTION_ARG_STRING, &option_keymatter,
|
| "Specify file containing data to use when "
|
| "generating cryptographic keys.", "FILENAME" },
|
| @@ -264,10 +269,13 @@ int main(int argc, char *argv[])
|
|
|
| __connman_element_start();
|
|
|
| + __connman_profile_push_batch(option_profiles);
|
| +
|
| g_strfreev(option_devices);
|
| g_strfreev(option_plugins);
|
| g_strfreev(option_nodevices);
|
| g_strfreev(option_noplugins);
|
| + g_strfreev(option_profiles);
|
|
|
| memset(&sa, 0, sizeof(sa));
|
| sa.sa_handler = sig_term;
|
|
|