simple-init

A set of init binaries for linux
git clone git://depsterr.com/git/simple-init
Log | Files | Refs | README | LICENSE

commit 5dd4631fdf651690ac9e1d612bf256d4bbffa75a
parent 022b42a648b720691a8af892f0d7f5a16da1f152
Author: depsterr <depsterr@protonmail.com>
Date:   Sun, 31 May 2020 15:05:58 +0200

updated tty behaviour

Diffstat:
Dinitscripts/config.h | 6------
Minitscripts/init.c | 8++++----
2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/initscripts/config.h b/initscripts/config.h @@ -1,6 +0,0 @@ -/* Services to run post boot */ -char* ttys[][4] = { - { "/bin/getty/", "38400", "tty1", 0 }, - { "/bin/getty/", "38400", "tty2", 0 }, - 0 -}; diff --git a/initscripts/init.c b/initscripts/init.c @@ -1,6 +1,5 @@ #include <unistd.h> -#include "config.h" #include "util.h" int main() { @@ -59,7 +58,8 @@ int main() { log_message("Killing device managers"); log_message("Boot completed, starting ttys"); - for(int n = 0; ttys[n]; n++) { - spawn_process(ttys[n]); - } + char* tty1[] = { "/bin/getty/", "38400", "tty1", 0 }; + char* tty2[] = { "/bin/getty/", "38400", "tty2", 0 }; + spawn_process(tty1); + spawn_process(tty2); }