summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 61e35cb3..c0e87b3a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -148,8 +148,11 @@ static void parse_config(GKeyFile *config)
"cellular",
};
- if (config == NULL)
+ if (config == NULL) {
+ connman_settings.auto_connect =
+ parse_service_types(default_auto_connect, 3);
return;
+ }
DBG("parsing main.conf");
@@ -462,10 +465,9 @@ int main(int argc, char *argv[])
__connman_dbus_init(conn);
config = load_config(CONFIGDIR "/main.conf");
- if (config != NULL) {
- parse_config(config);
+ parse_config(config);
+ if (config != NULL)
g_key_file_free(config);
- }
__connman_storage_migrate();
__connman_technology_init();