[BACK]Return to ttys CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / etc.amiga

File: [cvs.NetBSD.org] / src / etc / etc.amiga / ttys (download)

Revision 1.25, Wed Sep 25 23:09:20 2019 UTC (4 years, 6 months ago) by abs
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.24: +3 -3 lines

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

#
#	$NetBSD: ttys,v 1.25 2019/09/25 23:09:20 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"		wsvt25	off secure 
constty	"/usr/libexec/getty Pc"		wsvt25	on secure 
ttye0	"/usr/libexec/getty Pc"		wsvt25	off secure 	# custom chips
ttye1	"/usr/libexec/getty Pc"		wsvt25	off secure 	# retina
ttye2	"/usr/libexec/getty Pc"		wsvt25	off secure 	# retina
ttye3	"/usr/libexec/getty Pc"		wsvt25	off secure 	# cirrus logic
ttye4	"/usr/libexec/getty Pc"		wsvt25	off secure 	# a2410
ttye5	"/usr/libexec/getty Pc"		wsvt25	off secure 	# CyberVision64
ttye6	"/usr/libexec/getty Pc"		wsvt25	off secure 	# Domino, Merlin, oMniBus
ttye7	"/usr/libexec/getty Pc"		wsvt25	off secure 	# CyberVision64/3D
#
# wscons virtual terminals:
#
ttyE0	"/usr/libexec/getty Pc"		wsvt25	off secure
ttyE1	"/usr/libexec/getty Pc"		wsvt25	off secure
ttyE2	"/usr/libexec/getty Pc"		wsvt25	off secure
ttyE3	"/usr/libexec/getty Pc"		wsvt25	off secure
#
# Amiga internal serial port:
#
tty00	"/usr/libexec/getty std.9600"	unknown off secure
#
# first A2232
#
ttyA0	"/usr/libexec/getty std.9600"	unknown off secure
ttyA1	"/usr/libexec/getty std.9600"	unknown off secure
ttyA2	"/usr/libexec/getty std.9600"	unknown off secure
ttyA3	"/usr/libexec/getty std.9600"	unknown off secure
ttyA4	"/usr/libexec/getty std.9600"	unknown off secure
ttyA5	"/usr/libexec/getty std.9600"	unknown off secure
ttyA6	"/usr/libexec/getty std.9600"	unknown off secure
#
# MFC serials
#
ttyB0	"/usr/libexec/getty std.9600"	unknown off secure
ttyB1	"/usr/libexec/getty std.9600"	unknown off secure
ttyB2	"/usr/libexec/getty std.9600"	unknown off secure
ttyB3	"/usr/libexec/getty std.9600"	unknown off secure
ttyB4	"/usr/libexec/getty std.9600"	unknown off secure
ttyB5	"/usr/libexec/getty std.9600"	unknown off secure
ttyB6	"/usr/libexec/getty std.9600"	unknown off secure
ttyB7	"/usr/libexec/getty std.9600"	unknown off secure
#
# com style ports (DraCo, HyperCom, etc.)
#
ttyC0	"/usr/libexec/getty std.9600"	unknown off secure # DraCo: modem port
ttyC1	"/usr/libexec/getty std.9600"	unknown off secure # DraCo: mouse port
ttyC2	"/usr/libexec/getty std.9600"	unknown off secure
ttyC3	"/usr/libexec/getty std.9600"	unknown off secure
ttyC4	"/usr/libexec/getty std.9600"	unknown off secure
ttyC5	"/usr/libexec/getty std.9600"	unknown off secure
ttyC6	"/usr/libexec/getty std.9600"	unknown off secure
ttyC7	"/usr/libexec/getty std.9600"	unknown off secure
ttyC8	"/usr/libexec/getty std.9600"	unknown off secure
ttyC9	"/usr/libexec/getty std.9600"	unknown off secure