Move fork() of console to run_getty() and remove startx conf option

New function helpers.c:run_getty() refactored from main(). Used to
start a default console getty.

Removed startx finit.conf option, superseded by service statement,
see examples/finit.conf for a working use case.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2012-09-25 15:20:55 +02:00
1 parent dfa0fe6428
commit 75eb5cc043
6 files changed
+70 -73

No files matched your search

-5
View File
@@ -122,11 +122,6 @@ void parse_finit_conf(char *file)
network = build_cmd(NULL, x, CMD_SIZE);
continue;
}
if (MATCH_CMD(line, "startx ", x)) {
if (startx) free(startx);
startx = build_cmd(NULL, x, CMD_SIZE);
continue;
}
if (MATCH_CMD(line, "service ", x)) {
if (svc_register(x))
_e("Failed, too many services to monitor.\n");