From 71e3eef18b982a31f57a90b850de612dd4b2d7f8 Mon Sep 17 00:00:00 2001 From: kremlin- Date: Thu, 12 Jun 2014 19:22:06 -0500 Subject: furthering hostnamed, begining configuration.. --- src/main.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index f81e020..daa8157 100644 --- a/src/main.c +++ b/src/main.c @@ -4,14 +4,31 @@ /* end debugging */ #include +#include #include "interfaces/hostnamed/hostnamed.c" //#include "main.h" +#ifdef INSTALL +static gboolean install_conf() { + +} +#endif + int main() { + //TODO cleanup + #ifdef INSTALL + if(!install_conf()) { + g_printf("%s\n", "FAILED to install configs in /etc/!"); + exit(1); + } + #endif + //TODO cleanup #if (defined NO_BUILTIN_XML && defined INSTALL) - if(!install_conf()) - g_printf("%s\n", "FAILED to install xml configs!");; + if(!install_conf()) { + g_printf("%s\n", "FAILED to install xml configs!"); + exit(1); + } #else #endif @@ -23,3 +40,4 @@ int main() { return 0; } + -- cgit v1.2.3