svn commit: r315733 - in head: include lib/libc/gen libexec/getty

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Wed Mar 22 19:29:37 UTC 2017


> On Mar 22, 2017, at 12:00, Warner Losh <imp at FreeBSD.org> wrote:
> 
> Author: imp
> Date: Wed Mar 22 19:00:41 2017
> New Revision: 315733
> URL: https://svnweb.freebsd.org/changeset/base/315733
> 
> Log:
> 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
> 
> Modified:
> head/include/ttyent.h
> head/lib/libc/gen/getttyent.c
> head/libexec/getty/ttys.5

Slick! That’s a lot better than my other proposed change for /dev/ttyv0 (which isn’t present on one of our platforms because it doesn’t have a VGA console).
Thanks!
-Ngie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20170322/945568d0/attachment.sig>


More information about the svn-src-head mailing list