head 1.4; access; symbols netbsd-10-0-RELEASE:1.4 netbsd-10-0-RC6:1.4 netbsd-10-0-RC5:1.4 netbsd-10-0-RC4:1.4 netbsd-10-0-RC3:1.4 netbsd-10-0-RC2:1.4 netbsd-10-0-RC1:1.4 netbsd-10:1.4.0.8 netbsd-10-base:1.4 netbsd-9-3-RELEASE:1.3.30.1 cjep_sun2x-base1:1.4 cjep_sun2x:1.4.0.6 cjep_sun2x-base:1.4 cjep_staticlib_x-base1:1.4 netbsd-9-2-RELEASE:1.3.30.1 cjep_staticlib_x:1.4.0.4 cjep_staticlib_x-base:1.4 netbsd-9-1-RELEASE:1.3.30.1 phil-wifi-20200421:1.4 phil-wifi-20200411:1.4 is-mlppp:1.4.0.2 is-mlppp-base:1.4 phil-wifi-20200406:1.4 netbsd-8-2-RELEASE:1.3 netbsd-9-0-RELEASE:1.3.30.1 netbsd-9-0-RC2:1.3.30.1 netbsd-9-0-RC1:1.3.30.1 phil-wifi-20191119:1.4 netbsd-9:1.3.0.30 netbsd-9-base:1.3 phil-wifi-20190609:1.3 netbsd-8-1-RELEASE:1.3 netbsd-8-1-RC1:1.3 pgoyette-compat-merge-20190127:1.3 pgoyette-compat-20190127:1.3 pgoyette-compat-20190118:1.3 pgoyette-compat-1226:1.3 pgoyette-compat-1126:1.3 pgoyette-compat-1020:1.3 pgoyette-compat-0930:1.3 pgoyette-compat-0906:1.3 netbsd-7-2-RELEASE:1.3 pgoyette-compat-0728:1.3 netbsd-8-0-RELEASE:1.3 phil-wifi:1.3.0.28 phil-wifi-base:1.3 pgoyette-compat-0625:1.3 netbsd-8-0-RC2:1.3 pgoyette-compat-0521:1.3 pgoyette-compat-0502:1.3 pgoyette-compat-0422:1.3 netbsd-8-0-RC1:1.3 pgoyette-compat-0415:1.3 pgoyette-compat-0407:1.3 pgoyette-compat-0330:1.3 pgoyette-compat-0322:1.3 pgoyette-compat-0315:1.3 netbsd-7-1-2-RELEASE:1.3 pgoyette-compat:1.3.0.26 pgoyette-compat-base:1.3 netbsd-7-1-1-RELEASE:1.3 matt-nb8-mediatek:1.3.0.24 matt-nb8-mediatek-base:1.3 perseant-stdc-iso10646:1.3.0.22 perseant-stdc-iso10646-base:1.3 netbsd-8:1.3.0.20 netbsd-8-base:1.3 prg-localcount2-base3:1.3 prg-localcount2-base2:1.3 prg-localcount2-base1:1.3 prg-localcount2:1.3.0.18 prg-localcount2-base:1.3 pgoyette-localcount-20170426:1.3 bouyer-socketcan-base1:1.3 pgoyette-localcount-20170320:1.3 netbsd-7-1:1.3.0.16 netbsd-7-1-RELEASE:1.3 netbsd-7-1-RC2:1.3 netbsd-7-nhusb-base-20170116:1.3 bouyer-socketcan:1.3.0.14 bouyer-socketcan-base:1.3 pgoyette-localcount-20170107:1.3 netbsd-7-1-RC1:1.3 pgoyette-localcount-20161104:1.3 netbsd-7-0-2-RELEASE:1.3 localcount-20160914:1.3 netbsd-7-nhusb:1.3.0.12 netbsd-7-nhusb-base:1.3 pgoyette-localcount-20160806:1.3 pgoyette-localcount-20160726:1.3 pgoyette-localcount:1.3.0.10 pgoyette-localcount-base:1.3 netbsd-7-0-1-RELEASE:1.3 netbsd-7-0:1.3.0.8 netbsd-7-0-RELEASE:1.3 netbsd-7-0-RC3:1.3 netbsd-7-0-RC2:1.3 netbsd-7-0-RC1:1.3 netbsd-5-2-3-RELEASE:1.2 netbsd-5-1-5-RELEASE:1.2 netbsd-6-0-6-RELEASE:1.2 netbsd-6-1-5-RELEASE:1.2 netbsd-7:1.3.0.6 netbsd-7-base:1.3 yamt-pagecache-base9:1.3 yamt-pagecache-tag8:1.2 netbsd-6-1-4-RELEASE:1.2 netbsd-6-0-5-RELEASE:1.2 tls-earlyentropy:1.3.0.4 tls-earlyentropy-base:1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.3 riastradh-drm2-base3:1.3 netbsd-6-1-3-RELEASE:1.2 netbsd-6-0-4-RELEASE:1.2 netbsd-5-2-2-RELEASE:1.2 netbsd-5-1-4-RELEASE:1.2 netbsd-6-1-2-RELEASE:1.2 netbsd-6-0-3-RELEASE:1.2 netbsd-5-2-1-RELEASE:1.2 netbsd-5-1-3-RELEASE:1.2 netbsd-6-1-1-RELEASE:1.2 riastradh-drm2-base2:1.3 riastradh-drm2-base1:1.3 riastradh-drm2:1.3.0.2 riastradh-drm2-base:1.3 netbsd-6-1:1.2.0.36 netbsd-6-0-2-RELEASE:1.2 netbsd-6-1-RELEASE:1.2 khorben-n900:1.2.0.34 netbsd-6-1-RC4:1.2 netbsd-6-1-RC3:1.2 agc-symver:1.2.0.32 agc-symver-base:1.2 netbsd-6-1-RC2:1.2 netbsd-6-1-RC1:1.2 yamt-pagecache-base8:1.2 netbsd-5-2:1.2.0.28 netbsd-6-0-1-RELEASE:1.2 yamt-pagecache-base7:1.2 netbsd-5-2-RELEASE:1.2 netbsd-5-2-RC1:1.2 matt-nb6-plus-nbase:1.2 yamt-pagecache-base6:1.2 netbsd-6-0:1.2.0.26 netbsd-6-0-RELEASE:1.2 netbsd-6-0-RC2:1.2 tls-maxphys:1.2.0.24 tls-maxphys-base:1.3 matt-nb6-plus:1.2.0.22 matt-nb6-plus-base:1.2 netbsd-6-0-RC1:1.2 yamt-pagecache-base5:1.2 yamt-pagecache-base4:1.2 netbsd-6:1.2.0.20 netbsd-6-base:1.2 netbsd-5-1-2-RELEASE:1.2 netbsd-5-1-1-RELEASE:1.2 yamt-pagecache-base3:1.2 yamt-pagecache-base2:1.2 yamt-pagecache:1.2.0.18 yamt-pagecache-base:1.2 cherry-xenmp:1.2.0.16 cherry-xenmp-base:1.2 bouyer-quota2-nbase:1.2 bouyer-quota2:1.2.0.14 bouyer-quota2-base:1.2 matt-mips64-premerge-20101231:1.2 matt-nb5-mips64-premerge-20101231:1.2 matt-nb5-pq3:1.2.0.12 matt-nb5-pq3-base:1.2 netbsd-5-1:1.2.0.10 netbsd-5-1-RELEASE:1.2 netbsd-5-1-RC4:1.2 matt-nb5-mips64-k15:1.2 netbsd-5-1-RC3:1.2 netbsd-5-1-RC2:1.2 netbsd-5-1-RC1:1.2 netbsd-5-0-2-RELEASE:1.2 matt-nb5-mips64-premerge-20091211:1.2 matt-premerge-20091211:1.2 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.2 matt-nb4-mips64-k7-u2a-k9b:1.2 matt-nb5-mips64-u1-k1-k5:1.2 matt-nb5-mips64:1.2.0.8 netbsd-5-0-1-RELEASE:1.2 jym-xensuspend-nbase:1.2 netbsd-5-0:1.2.0.6 netbsd-5-0-RELEASE:1.2 netbsd-5-0-RC4:1.2 netbsd-5-0-RC3:1.2 netbsd-5-0-RC2:1.2 jym-xensuspend:1.2.0.4 jym-xensuspend-base:1.2 netbsd-5-0-RC1:1.2 mjf-devfs2-base2:1.2 netbsd-5:1.2.0.2 netbsd-5-base:1.2 matt-mips64-base2:1.2 matt-mips64:1.1.0.24 netbsd-4-0-1-RELEASE:1.1 wrstuden-revivesa-base-3:1.1 wrstuden-revivesa-base-2:1.1 wrstuden-fixsa-newbase:1.1 wrstuden-revivesa-base-1:1.1 yamt-pf42-base4:1.1 yamt-pf42-base3:1.1 hpcarm-cleanup-nbase:1.1 yamt-pf42-baseX:1.1 yamt-pf42-base2:1.1 wrstuden-revivesa:1.1.0.22 wrstuden-revivesa-base:1.1 yamt-pf42:1.1.0.20 yamt-pf42-base:1.1 mjf-devfs2:1.1.0.18 mjf-devfs2-base:1.1 keiichi-mipv6:1.1.0.16 keiichi-mipv6-base:1.1 mjf-devfs:1.1.0.14 mjf-devfs-base:1.1 matt-armv6-nbase:1.1 matt-armv6-prevmlocking:1.1 wrstuden-fixsa-base-1:1.1 netbsd-4-0:1.1.0.12 netbsd-4-0-RELEASE:1.1 cube-autoconf:1.1.0.10 cube-autoconf-base:1.1 netbsd-4-0-RC5:1.1 netbsd-4-0-RC4:1.1 netbsd-4-0-RC3:1.1 netbsd-4-0-RC2:1.1 netbsd-4-0-RC1:1.1 matt-armv6:1.1.0.8 matt-armv6-base:1.1 matt-mips64-base:1.1 hpcarm-cleanup:1.1.0.6 hpcarm-cleanup-base:1.1 wrstuden-fixsa:1.1.0.4 wrstuden-fixsa-base:1.1 netbsd-4:1.1.0.2 netbsd-4-base:1.1; locks; strict; comment @# @; 1.4 date 2019.09.25.23.09.22; author abs; state Exp; branches; next 1.3; commitid 3YGcHKFzfDh1NrEB; 1.3 date 2013.05.08.15.14.27; author tsutsui; state Exp; branches 1.3.28.1 1.3.30.1; next 1.2; 1.2 date 2008.10.07.10.00.02; author abs; state Exp; branches 1.2.18.1 1.2.24.1; next 1.1; 1.1 date 2006.09.01.21.35.00; author uwe; state Exp; branches 1.1.18.1; next ; 1.3.28.1 date 2020.04.13.07.45.42; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.3.30.1 date 2019.10.28.18.38.31; author martin; state Exp; branches; next ; commitid NBmdohuY85NUgFIB; 1.2.18.1 date 2014.05.22.11.27.20; author yamt; state Exp; branches; next ; commitid spVi6gj5ReXSGwBx; 1.2.24.1 date 2013.06.23.06.26.21; author tls; state Exp; branches; next ; commitid OnlO1cBgtQRcIHUw; 1.1.18.1 date 2009.01.17.20.43.43; author mjf; state Exp; branches; next ; desc @@ 1.4 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.3 2013/05/08 15:14:27 tsutsui 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. # # /dev/console is always valid, regardless of the board type. # console "/usr/libexec/getty std.9600" unknown off secure constty "/usr/libexec/getty std.9600" unknown on secure scif0 "/usr/libexec/getty std.9600" vt100 off secure local @ 1.3 log @Add an entry for scif0 serial. @ text @d1 1 a1 1 # $NetBSD: ttys,v 1.2 2008/10/07 10:00:02 abs Exp $ d11 2 a12 2 console "/usr/libexec/getty std.9600" unknown on secure constty "/usr/libexec/getty std.9600" unknown off secure @ 1.3.28.1 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 # $NetBSD$ d11 2 a12 2 console "/usr/libexec/getty std.9600" unknown off secure constty "/usr/libexec/getty std.9600" unknown on secure @ 1.3.30.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 @d1 1 a1 1 # $NetBSD: ttys,v 1.3 2013/05/08 15:14:27 tsutsui Exp $ d11 2 a12 2 console "/usr/libexec/getty std.9600" unknown off secure constty "/usr/libexec/getty std.9600" unknown on secure @ 1.2 log @Add a constty entry, marked 'off', with otherwise the same settings as the console. Now when coming up in single user mode the tset in /.profile can set the terminal type correctly. Note: I believe constty should be 'on' and console 'off', but thats a separate discussion @ text @d1 1 a1 1 # $NetBSD: ttys,v 1.1 2006/09/01 21:35:00 uwe Exp $ d13 2 @ 1.2.18.1 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @d1 1 a1 1 # $NetBSD: ttys,v 1.2 2008/10/07 10:00:02 abs Exp $ a12 2 scif0 "/usr/libexec/getty std.9600" vt100 off secure local @ 1.2.24.1 log @resync from head @ text @d1 1 a1 1 # $NetBSD$ a12 2 scif0 "/usr/libexec/getty std.9600" vt100 off secure local @ 1.1 log @Initial import of NetBSD/landisk port by NONAKA Kimihiro @ text @d1 1 a1 1 # $NetBSD$ d12 1 @ 1.1.18.1 log @Sync with HEAD. @ text @a11 1 constty "/usr/libexec/getty std.9600" unknown off secure @