summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2011-09-23 14:09:25 +0000
committerSteven Barth <steven@midlink.org>2011-09-23 14:09:25 +0000
commit8e3fc8bfa55fe256ab9520db8df94dae57a1dc28 (patch)
tree11e0851e9a848bb350520e80e9f5bb45f27dbcdf /main.c
parent2c915b27e10c02795eea8b2fb9f327a62c5ef40d (diff)
add a system_init function for system control
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index 7602f23..e008f64 100644
--- a/main.c
+++ b/main.c
@@ -7,6 +7,7 @@
#include "netifd.h"
#include "ubus.h"
#include "config.h"
+#include "system.h"
#include "interface.h"
const char *main_path = ".";
@@ -63,6 +64,11 @@ int main(int argc, char **argv)
return 1;
}
+ if (system_init()) {
+ fprintf(stderr, "Failed to initialize system control\n");
+ return 1;
+ }
+
config_init_interfaces(NULL);
uloop_run();