diff options
| author | abs <abs@NetBSD.org> | 2019-09-25 23:09:19 +0000 |
|---|---|---|
| committer | abs <abs@NetBSD.org> | 2019-09-25 23:09:19 +0000 |
| commit | 34417aba2b5c268a203b5ed3c14f162a90ba0956 (patch) | |
| tree | c17172623f5342282ee800c75c5c164f75c129c6 /etc/etc.hp300 | |
| parent | 09f8a4bab794359f7fa20251963ecdcb24f20467 (diff) | |
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
Diffstat (limited to 'etc/etc.hp300')
| -rw-r--r-- | etc/etc.hp300/ttys | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/etc.hp300/ttys b/etc/etc.hp300/ttys index e958a9bac31..8eae7fd9808 100644 --- a/etc/etc.hp300/ttys +++ b/etc/etc.hp300/ttys @@ -1,12 +1,12 @@ -# $NetBSD: ttys,v 1.16 2012/06/13 20:49:13 martin Exp $ +# $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 on secure -constty "/usr/libexec/getty Pc" vt220 off secure +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 |
