*
* Connection Manager
*
- * Copyright (C) 2007-2010 Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-2012 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
#include <gdbus.h>
-#ifdef HAVE_CAPNG
-#include <cap-ng.h>
-#endif
-
#include "connman.h"
static struct {
"wifi",
"ethernet",
"cellular",
+ NULL
};
- if (config == NULL)
+ if (config == NULL) {
+ connman_settings.auto_connect =
+ parse_service_types(default_auto_connect, 3);
return;
+ }
DBG("parsing main.conf");
GKeyFile *config;
guint signal;
-#ifdef HAVE_CAPNG
- /* Drop capabilities */
-#endif
-
#ifdef NEED_THREADS
if (g_thread_supported() == FALSE)
g_thread_init(NULL);
__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();