head 1.2; access; symbols netbsd-10-0-RELEASE:1.2 netbsd-10-0-RC6:1.2 netbsd-10-0-RC5:1.2 netbsd-10-0-RC4:1.2 netbsd-10-0-RC3:1.2 netbsd-10-0-RC2:1.2 netbsd-10-0-RC1:1.2 netbsd-10:1.2.0.8 netbsd-10-base:1.2 netbsd-9-3-RELEASE:1.1.18.1 cjep_sun2x-base1:1.2 cjep_sun2x:1.2.0.6 cjep_sun2x-base:1.2 cjep_staticlib_x-base1:1.2 netbsd-9-2-RELEASE:1.1.18.1 cjep_staticlib_x:1.2.0.4 cjep_staticlib_x-base:1.2 netbsd-9-1-RELEASE:1.1.18.1 phil-wifi-20200421:1.2 phil-wifi-20200411:1.2 is-mlppp:1.2.0.2 is-mlppp-base:1.2 phil-wifi-20200406:1.2 netbsd-8-2-RELEASE:1.1 netbsd-9-0-RELEASE:1.1.18.1 netbsd-9-0-RC2:1.1.18.1 netbsd-9-0-RC1:1.1.18.1 phil-wifi-20191119:1.2 netbsd-9:1.1.0.18 netbsd-9-base:1.1 phil-wifi-20190609:1.1 netbsd-8-1-RELEASE:1.1 netbsd-8-1-RC1:1.1 pgoyette-compat-merge-20190127:1.1 pgoyette-compat-20190127:1.1 pgoyette-compat-20190118:1.1 pgoyette-compat-1226:1.1 pgoyette-compat-1126:1.1 pgoyette-compat-1020:1.1 pgoyette-compat-0930:1.1 pgoyette-compat-0906:1.1 pgoyette-compat-0728:1.1 netbsd-8-0-RELEASE:1.1 phil-wifi:1.1.0.16 phil-wifi-base:1.1 pgoyette-compat-0625:1.1 netbsd-8-0-RC2:1.1 pgoyette-compat-0521:1.1 pgoyette-compat-0502:1.1 pgoyette-compat-0422:1.1 netbsd-8-0-RC1:1.1 pgoyette-compat-0415:1.1 pgoyette-compat-0407:1.1 pgoyette-compat-0330:1.1 pgoyette-compat-0322:1.1 pgoyette-compat-0315:1.1 pgoyette-compat:1.1.0.14 pgoyette-compat-base:1.1 matt-nb8-mediatek:1.1.0.12 matt-nb8-mediatek-base:1.1 perseant-stdc-iso10646:1.1.0.10 perseant-stdc-iso10646-base:1.1 netbsd-8:1.1.0.8 netbsd-8-base:1.1 prg-localcount2-base3:1.1 prg-localcount2-base2:1.1 prg-localcount2-base1:1.1 prg-localcount2:1.1.0.6 prg-localcount2-base:1.1 pgoyette-localcount-20170426:1.1 bouyer-socketcan-base1:1.1 pgoyette-localcount-20170320:1.1 bouyer-socketcan:1.1.0.4 bouyer-socketcan-base:1.1 pgoyette-localcount-20170107:1.1 pgoyette-localcount-20161104:1.1 localcount-20160914:1.1 pgoyette-localcount:1.1.0.2 pgoyette-localcount-20160806:1.1; locks; strict; comment @# @; 1.2 date 2019.09.25.23.09.22; author abs; state Exp; branches; next 1.1; commitid 3YGcHKFzfDh1NrEB; 1.1 date 2016.08.05.16.22.08; author scole; state Exp; branches 1.1.2.1 1.1.16.1 1.1.18.1; next ; commitid IbEy91Gi1N7Lp8hz; 1.1.2.1 date 2016.08.05.16.22.08; author pgoyette; state dead; branches; next 1.1.2.2; commitid da8LmcQp9HeG2bhz; 1.1.2.2 date 2016.08.06.00.18.40; author pgoyette; state Exp; branches; next ; commitid da8LmcQp9HeG2bhz; 1.1.16.1 date 2020.04.13.07.45.42; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.1.18.1 date 2019.10.28.18.38.32; author martin; state Exp; branches; next ; commitid NBmdohuY85NUgFIB; desc @@ 1.2 log @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 @ text @# # $NetBSD: ttys,v 1.1 2016/08/05 16:22:08 scole 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 @ 1.1 log @PR port-ia64/51261 Stubs for ia64 @ text @d2 1 a2 1 # $NetBSD$ d10 2 a11 2 console "/usr/libexec/getty std.9600" vt100 on secure constty "/usr/libexec/getty std.9600" vt100 off secure @ 1.1.16.1 log @Mostly merge changes from HEAD upto 20200411 @ text @d10 2 a11 2 console "/usr/libexec/getty std.9600" vt100 off secure constty "/usr/libexec/getty std.9600" vt100 on secure @ 1.1.18.1 log @Pull up following revision(s) (requested by abs in ticket #384): etc/etc.evbmips/ttys: revision 1.7 etc/etc.sparc64/ttys: revision 1.12 etc/etc.shark/ttys: revision 1.9 etc/etc.amiga/ttys: revision 1.25 etc/etc.arc/ttys: revision 1.9 etc/etc.sbmips/ttys: revision 1.6 etc/etc.landisk/ttys: revision 1.4 etc/etc.alpha/ttys: revision 1.13 etc/etc.amigappc/ttys: revision 1.4 etc/etc.mmeye/ttys: revision 1.8 etc/etc.ia64/ttys: revision 1.2 etc/etc.sandpoint/ttys: revision 1.8 etc/etc.hp300/ttys: revision 1.17 etc/etc.riscv/ttys: revision 1.2 etc/etc.i386/ttys: revision 1.21 etc/etc.aarch64/ttys: revision 1.2 etc/etc.algor/ttys: revision 1.6 etc/etc.sparc/ttys: revision 1.17 etc/etc.mipsco/ttys: revision 1.7 etc/etc.luna68k/ttys: revision 1.9 etc/etc.iyonix/ttys: revision 1.5 etc/etc.evbcf/ttys: revision 1.3 etc/etc.netwinder/ttys: revision 1.9 etc/etc.mvme68k/ttys: revision 1.10 etc/etc.evbarm/ttys: revision 1.8 etc/etc.evbsh3/ttys: revision 1.7 etc/etc.pmax/ttys: revision 1.16 etc/etc.hpcmips/ttys: revision 1.12 etc/etc.vax/ttys: revision 1.10 etc/etc.news68k/ttys: revision 1.10 etc/etc.mvmeppc/ttys: revision 1.7 etc/etc.hppa/ttys: revision 1.2 etc/etc.next68k/ttys: revision 1.11 etc/etc.ews4800mips/ttys: revision 1.3 etc/etc.epoc32/ttys: revision 1.2 etc/etc.emips/ttys: revision 1.2 etc/etc.evbppc/ttys: revision 1.7 etc/etc.sgimips/ttys: revision 1.11 etc/etc.or1k/ttys: revision 1.2 etc/etc.cesfic/ttys: revision 1.6 etc/etc.amd64/ttys: revision 1.7 etc/etc.playstation2/ttys: revision 1.7 etc/etc.zaurus/ttys: revision 1.4 etc/etc.newsmips/ttys: revision 1.10 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 @ text @d2 1 a2 1 # $NetBSD: ttys,v 1.1 2016/08/05 16:22:08 scole Exp $ d10 2 a11 2 console "/usr/libexec/getty std.9600" vt100 off secure constty "/usr/libexec/getty std.9600" vt100 on secure @ 1.1.2.1 log @file ttys was added on branch pgoyette-localcount on 2016-08-06 00:18:40 +0000 @ text @d1 23 @ 1.1.2.2 log @Sync with HEAD @ text @a0 23 # # $NetBSD: ttys,v 1.1 2016/08/05 16:22:08 scole 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 on secure constty "/usr/libexec/getty std.9600" vt100 off 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 @