NetBSD/etc/etc.ews4800mips/ttys
abs 039df638d6 Switch default console tty from /dev/console to /dev/constty
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
2019-09-25 23:09:19 +00:00

12 lines
365 B
Plaintext

#
# $NetBSD: ttys,v 1.3 2019/09/25 23:09:21 abs Exp $
#
# name getty type status comments
console "/usr/libexec/getty std.9600" wsvt25 off secure
constty "/usr/libexec/getty std.9600" wsvt25 off secure
ttyE0 "/usr/libexec/getty std.9600" wsvt25 on secure
ttyZ0 "/usr/libexec/getty std.9600" vt100 on secure
ttyZ1 "/usr/libexec/getty std.9600" vt100 on secure