Home | History | Annotate | Download | only in etc.i386
History log of /src/etc/etc.i386/ttys
RevisionDateAuthorComments
 1.21  25-Sep-2019  abs 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
 1.20  13-Jun-2012  martin branches: 1.20.34; 1.20.36;
Per discussion on tech-userlevel, finally fix PR 10127:
move all ttyE* entries that use "vt100" emulation to wsvt25 term type.
The terminfo vt220 entry lacked (correctly) a delete key entry, which
was a regression against the netbsd-5 termcap entry. On the other hand,
only a very small number of foreign systems lacks support for wsvt25
nowadays.
 1.19  07-Oct-2008  abs branches: 1.19.18; 1.19.20;
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
 1.18  20-Jun-2004  christos branches: 1.18.26;
remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.
 1.17  04-Oct-2003  dsl Revert 'console' back to /dev/console (from /dev/constty)
 1.16  03-Oct-2003  dsl Change 'console' login to use /dev/constty so that its output isn't
stolen by code that requests system messages using TIOCCONS.
 1.15  17-Feb-2002  tron Back out last change as suggested by Hubert Feyrer in private e-mail:
The "ttys" file is modified by "sysinst" during installation.
 1.14  17-Feb-2002  tron Enable for "getty" processes because because the i386 port used wscons(4)
default these days and the default "wsconf.conf" creates four screens.
 1.13  13-Feb-2002  martti Added ttyp[g-zA-Z] (bin/15594).
 1.12  19-Jun-2001  tv Do what we should have been doing long ago; use /dev/console by default as the
boot console tty, so that the console is on the same place that the kernel
dmesg output goes, whether wscons or serial. Users who want to use tty00
or ttyE0 explicitly can change /etc/ttys themselves.

Also use "vt100" as terminal type for /dev/console (for a reasonable baseline
that also works with wscons; pccons is long since no longer default).

This addresses PR install/13249, i386-specific, but may be appropriate to
apply to all ports.
 1.11  12-Aug-2000  mason This should be the final part of moving to 64 PTYs by default. Added
entries for tty{r,s}{0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f} to /etc/ttys.

Thanks to Matthew Green for pointing out the need.
 1.10  01-May-1999  perry branches: 1.10.8;
turn off ttyE[123] by default -- default installs don't configure them.
 1.9  02-Feb-1999  drochner branches: 1.9.2;
wscons is default now - replace the "ttyv0" getty by a number of
"ttyEn" lines.
Thanks to "Johnny C. Lam" <lamj@stat.cmu.edu> for pointing out.
 1.8  15-Oct-1996  perry RCS ID police
 1.7  31-Jul-1994  mycroft Change vga to ttyv0, with a symlink for X.
 1.6  05-Feb-1994  deraadt branches: 1.6.2;
reality
 1.5  23-Aug-1993  cgd changes from 0.9-ALPHA2 to 0.9-BETA
 1.4  10-Jul-1993  mycroft branches: 1.4.2;
Remove a spurious `unknown' that was screwing people over.
 1.3  08-Jul-1993  cgd changes for init...
 1.2  02-Apr-1993  cgd changed `console' to `vga'
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4.2.1  20-Aug-1993  cgd add i386-specific instructions. still need to deal with the fact
that the generic console's getty is type "Pc" -- BOGUS!!!
 1.6.2.1  01-Aug-1994  cgd from turnk.
 1.9.2.1  01-May-1999  perry pullup 1.9->1.10 (perry)
 1.10.8.2  04-Sep-2002  itojun pullup etc/etc.i386/ttys 1.12 via patch (redo)

> Do what we should have been doing long ago; use /dev/console by default as the
> boot console tty, so that the console is on the same place that the kernel
> dmesg output goes, whether wscons or serial. Users who want to use tty00
> or ttyE0 explicitly can change /etc/ttys themselves.
 1.10.8.1  12-Aug-2000  mason This should be the last piece of the move to 64 default PTYs. /etc/ttys now
has entries for 64 ptys.

Thanks to Matthew Green for pointing out the need for this.
 1.18.26.1  17-Jan-2009  mjf Sync with HEAD.
 1.19.20.1  24-Jun-2012  riz Pull up following revision(s) (requested by martin in ticket #342):
etc/etc.shark/ttys: revision 1.8
etc/etc.hpcsh/ttys: revision 1.11
etc/etc.amiga/ttys: revision 1.24
etc/etc.arc/ttys: revision 1.8
etc/etc.alpha/ttys: revision 1.12
etc/etc.amigappc/ttys: revision 1.3
etc/etc.ofppc/ttys: revision 1.9
etc/etc.hp300/ttys: revision 1.16
etc/etc.rs6000/ttys: revision 1.2
etc/etc.i386/ttys: revision 1.20
etc/etc.acorn26/ttys: revision 1.4
etc/etc.iyonix/ttys: revision 1.4
etc/etc.netwinder/ttys: revision 1.8
etc/etc.mac68k/ttys: revision 1.20
etc/etc.evbarm/ttys: revision 1.7
etc/etc.pmax/ttys: revision 1.15
etc/etc.hpcmips/ttys: revision 1.10
share/terminfo/terminfo: revision 1.5
etc/etc.mvmeppc/ttys: revision 1.6
etc/etc.next68k/ttys: revision 1.10
etc/etc.acorn32/ttys: revision 1.9
etc/etc.ibmnws/ttys: revision 1.4
etc/etc.atari/ttys: revision 1.10
etc/etc.sgimips/ttys: revision 1.10
etc/etc.newsmips/ttys: revision 1.9
etc/etc.hpcarm/ttys: revision 1.6
etc/etc.cats/ttys: revision 1.7
etc/etc.amd64/ttys: revision 1.6
etc/etc.prep/ttys: revision 1.8
etc/etc.zaurus/ttys: revision 1.3
Per discussion on tech-userlevel, finally fix PR 10127:
move all ttyE* entries that use "vt100" emulation to wsvt25 term type.
The terminfo vt220 entry lacked (correctly) a delete key entry, which
was a regression against the netbsd-5 termcap entry. On the other hand,
only a very small number of foreign systems lacks support for wsvt25
nowadays.
Add a delete key capability to our wsvt25 entry. Fixes a problem noted by
David Lord on netbsd-users.
 1.19.18.1  30-Oct-2012  yamt sync with head
 1.20.36.1  28-Oct-2019  martin 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
 1.20.34.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed