Update connman settings for single device as well
[platform/upstream/connman.git] / tools / dhcp-server-test.c
old mode 100644 (file)
new mode 100755 (executable)
index b7d2e54..59f5f34
@@ -29,6 +29,8 @@
 
 #include <gdhcp/gdhcp.h>
 
+#include "../src/connman.h"
+
 static GMainLoop *main_loop;
 
 static void sig_term(int sig)
@@ -113,8 +115,12 @@ int main(int argc, char *argv[])
        sigaction(SIGINT, &sa, NULL);
        sigaction(SIGTERM, &sa, NULL);
 
+       __connman_util_init();
+
        g_main_loop_run(main_loop);
 
+       __connman_util_cleanup();
+
        g_dhcp_server_unref(dhcp_server);
 
        g_main_loop_unref(main_loop);