039df638d6
With this switch processes (such as xconsole) can open /dev/console without breaking login on the text or serial console. This can be trivially triggered by enabling xdm in rc.conf and hitting Ctrl+Alt+F1 or equivalent once booted. The changes: - Add entry for /dev/console or /dev/constty if missing - If a port's had /dev/console 'on' switch it off and enable /dev/constty - If a port did not have /dev/console 'on', leave /dev/constty off Some ports had /dev/console off and /dev/ttyE0 enabled, presumably to avoid just this issue. It may make sense to adjust these also (but not in this pass) As discussed on current-users
37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
# $NetBSD: ttys,v 1.17 2019/09/25 23:09:21 abs Exp $
|
|
# from: @(#)ttys 5.1 (Berkeley) 4/17/89
|
|
#
|
|
# name getty type status comments
|
|
#
|
|
# If the console is marked insecure, single-user requires
|
|
# the root password.
|
|
console "/usr/libexec/getty Pc" vt220 off secure
|
|
constty "/usr/libexec/getty Pc" vt220 on secure
|
|
|
|
# Workstation console
|
|
ttyE0 "/usr/libexec/getty Pc" wsvt25 off secure
|
|
|
|
# Hardwired lines are marked off, by default, so getty(8)
|
|
# is quiet when they don't exist.
|
|
ttyC0 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyC1 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyC2 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyC3 "/usr/libexec/getty std.9600" unknown off secure
|
|
|
|
ttyM0 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyM1 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyM2 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyM3 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyM4 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyM5 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyM6 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyM7 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyM8 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyM9 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyMa "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyMb "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyMc "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyMd "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyMe "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyMf "/usr/libexec/getty std.9600" unknown off secure
|