diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-08 16:04:22 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-08 16:04:22 +0100 |
commit | b2a4246439738b5e9a262da77d56d99d348da36a (patch) | |
tree | 62a7ae778949b0451240aaf8076ecbe81a52e9b6 /src | |
parent | 4d1e58a4708f64d3e651ba54747171db9385941b (diff) | |
download | connman-b2a4246439738b5e9a262da77d56d99d348da36a.tar.gz connman-b2a4246439738b5e9a262da77d56d99d348da36a.tar.bz2 connman-b2a4246439738b5e9a262da77d56d99d348da36a.zip |
main: Stop rfkill after the plugins
In order to catch rfkill device deletion and to propagate those events
to the technology layer properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/element.c | 4 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/element.c b/src/element.c index a4230b7c..27631ea7 100644 --- a/src/element.c +++ b/src/element.c @@ -1400,16 +1400,12 @@ void __connman_element_start(void) __connman_dhcp_init(); __connman_wpad_init(); __connman_wispr_init(); - - __connman_rfkill_init(); } void __connman_element_stop(void) { DBG(""); - __connman_rfkill_cleanup(); - __connman_wispr_cleanup(); __connman_wpad_cleanup(); __connman_dhcp_cleanup(); @@ -232,6 +232,7 @@ int main(int argc, char *argv[]) __connman_detect_init(); __connman_session_init(); __connman_timeserver_init(); + __connman_rfkill_init(); __connman_plugin_init(option_plugin, option_noplugin); @@ -253,6 +254,7 @@ int main(int argc, char *argv[]) __connman_plugin_cleanup(); + __connman_rfkill_cleanup(); __connman_timeserver_cleanup(); __connman_session_cleanup(); __connman_detect_cleanup(); |