]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Impelemnt ttys onifexists in init.
authorWarner Losh <imp@FreeBSD.org>
Wed, 22 Mar 2017 19:00:41 +0000 (19:00 +0000)
committerWarner Losh <imp@FreeBSD.org>
Wed, 22 Mar 2017 19:00:41 +0000 (19:00 +0000)
commit37b5835028cb170fdffb35e33fdf1fdcc402df9a
treedee31853c91e51b45454d3c700be92320c1269df
parent8b36e24529f54046eda5d317a137592f77318c02
Impelemnt ttys onifexists in init.

Implement a new init(8) option in /etc/ttys. If this option is present
on the entry in /etc/ttys, the entry will be active if and only if it
exists.  If the name starts with a '/', it will be considered an
absolute path. If not, it will be a path relative to /dev.

This allows one to turn off video console getty that aren't present
(while running a getty on them even when they aren't the system
console). Likewise with serial ports.

It differs from onifconsole in only requiring the device exist rather
than it be listed as one of the system consoles.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D10037
include/ttyent.h
lib/libc/gen/getttyent.c
libexec/getty/ttys.5