diff options
author | Steven Barth <steven@midlink.org> | 2011-09-23 14:09:25 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2011-09-23 14:09:25 +0000 |
commit | 8e3fc8bfa55fe256ab9520db8df94dae57a1dc28 (patch) | |
tree | 11e0851e9a848bb350520e80e9f5bb45f27dbcdf /main.c | |
parent | 2c915b27e10c02795eea8b2fb9f327a62c5ef40d (diff) |
add a system_init function for system control
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(); |