Merge branch 'finit-sm' of https://github.com/westermo/finit into westermo-finit-sm

Hand merged conflicts in the following files:
	Makefile
	finit.h
	service.c

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-06-04 19:48:08 +02:00
commit cc15d3f77b
9 files changed
+307 -152

No files matched your search

+5 -2
View File
@@ -39,6 +39,7 @@
#include "tty.h"
#include "lite/lite.h"
#include "inetd.h"
#include "sm.h"
int debug = 0;
int quiet = QUIET_MODE; /* Delayed disable of silent mode. */
@@ -53,6 +54,7 @@ char *hostname = NULL;
char *rcsd = FINIT_RCSD;
char *runparts = NULL;
char *console = NULL;
sm_t sm;
uev_ctx_t *ctx = NULL; /* Main loop context */
@@ -176,9 +178,10 @@ int main(int argc, char* argv[])
plugin_run_hooks(HOOK_BASEFS_UP);
/*
* Start all bootstrap tasks, no network available!
* Initalize finit state machine and start all bootstrap tasks, no network available!
*/
service_bootstrap();
sm_init(&sm);
sm_step(&sm);
/*
* Network stuff