summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-22 14:24:44 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-07-22 14:24:44 +0200
commit4473efff0d79428459724f62045697b9967a6dc5 (patch)
tree09965660c1138ba1adf551fca6f16d03056f95b3
parent47fa4b571b798ee8e2dcdc8edb15bcef5bc5e955 (diff)
downloadconnman-4473efff0d79428459724f62045697b9967a6dc5.tar.gz
connman-4473efff0d79428459724f62045697b9967a6dc5.tar.bz2
connman-4473efff0d79428459724f62045697b9967a6dc5.zip
Move RTNL and udev init after probing of devices
-rw-r--r--src/element.c3
-rw-r--r--src/main.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/element.c b/src/element.c
index 4f5b3292..a5af1a79 100644
--- a/src/element.c
+++ b/src/element.c
@@ -1609,6 +1609,9 @@ void __connman_element_start(void)
started = TRUE;
+ __connman_rtnl_init();
+ __connman_udev_init();
+
__connman_connection_init();
__connman_ipv4_init();
__connman_rfkill_init();
diff --git a/src/main.c b/src/main.c
index 891ede11..fe411834 100644
--- a/src/main.c
+++ b/src/main.c
@@ -203,8 +203,6 @@ int main(int argc, char *argv[])
__connman_profile_init(conn);
__connman_resolver_init();
- __connman_rtnl_init();
- __connman_udev_init();
__connman_plugin_init(option_plugin, option_noplugin);