Add support for specifying TTYs and console TTY in finit.conf

This commit adds support for specifying TTY and console to be used
for starting a getty to login to the system

Add the following to your finit.conf to use this feature:

    tty ttyS0
    tty ttyUSB0
    console ttyS0

Signed-off-by: Mattias Walström <lazzer@gmail.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Mattias Walström authored and Joachim Nilsson committed 2013-05-19 18:45:27 +02:00
1 parent 89675403d8
commit 3bcefd2160
3 files changed
+44 -44

No files matched your search

+1 -2
View File
@@ -143,8 +143,7 @@ void parse_finit_conf(char *file)
if (MATCH_CMD(line, "tty ", x)) {
char *tty = build_cmd(NULL, x, CMD_SIZE);
int baud = 115200; /* TODO: Read from config file. */
int baud = 115200; /* XXX - Read from config file */
tty_add(tty, baud);
continue;
}