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
24 lines
831 B
Plaintext
24 lines
831 B
Plaintext
#
|
|
# $NetBSD: ttys,v 1.2 2019/09/25 23:09:22 abs Exp $
|
|
#
|
|
# name getty type status comments
|
|
|
|
# In normal operation, getty on 'console' pseudo-device is disabled, and is
|
|
# enabled for the correct 'real' device (e.g. one of the serial ports).
|
|
|
|
# console pseudo-device
|
|
console "/usr/libexec/getty std.9600" vt100 off secure
|
|
constty "/usr/libexec/getty std.9600" vt100 on secure
|
|
|
|
# Workstation console (framebuffer) ttys
|
|
ttyE0 "/usr/libexec/getty std.9600" wsvt25 off secure
|
|
ttyE1 "/usr/libexec/getty std.9600" wsvt25 off secure
|
|
|
|
# DEC 3000 Z8530 ("scc") serial ports
|
|
ttyB0 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyB1 "/usr/libexec/getty std.9600" unknown off secure
|
|
|
|
# AlphaStation NS16550 ("com") serial ports
|
|
ttyC0 "/usr/libexec/getty std.9600" unknown off secure
|
|
ttyC1 "/usr/libexec/getty std.9600" unknown off secure
|