Add basic support to specify login TTYs in configuration

This also adds support for monitor /dev for TTYs appering after boot,
USB-to-serial converters for example.

Some limitations: Baudrate (and other settings) is hardcoded for now,
should be read from config file.
This commit is contained in:
Mattias Walström
2013-01-22 21:17:20 +01:00
parent a18c5f3441
commit 5961748b2a
7 changed files with 200 additions and 57 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ EXEC = finit reboot
HEADERS = plugin.h svc.h helpers.h queue.h
DISTFILES = LICENSE README ChangeLog finit.conf services
OBJS = finit.o conf.o helpers.o sig.o svc.o plugin.o
OBJS += strlcpy.o
OBJS += strlcpy.o tty.o
SRCS = $(OBJS:.o=.c)
DEPS = $(addprefix .,$(SRCS:.c=.d))