Browse Source

Try to make /etc/ttys more consistent accross platforms, which will also

make the installation media's life easier:
- stop using ``Pc'' as a getty terminal type, use std.9600 instead.
- on platforms with multiple virtual consoles (alpha, amd64, i386,
zaurus), console is disabled, various ttyC* are enabled.
- on other platforms, console is enabled, all other devices are
disabled. This only changes armish, mac68k, sgi.
- default terminal for console is unknown on serial-only machines, vt220
on glass-capable machines (questionable, but done for consistency).
- minor whitespace changes.
- glass console forgotten on a couple platforms (luna88k, sparc64, vax).
eyeballed by deraadt@, ok krw@
OPENBSD_4_3
miod 17 years ago
parent
commit
dc0e7bda83
18 changed files with 109 additions and 121 deletions
  1. +7
    -7
      src/etc/etc.alpha/ttys
  2. +14
    -14
      src/etc/etc.amd64/ttys
  3. +3
    -3
      src/etc/etc.armish/ttys
  4. +4
    -6
      src/etc/etc.aviion/ttys
  5. +1
    -2
      src/etc/etc.hp300/ttys
  6. +2
    -2
      src/etc/etc.hppa/ttys
  7. +2
    -2
      src/etc/etc.hppa64/ttys
  8. +14
    -14
      src/etc/etc.i386/ttys
  9. +2
    -2
      src/etc/etc.landisk/ttys
  10. +5
    -5
      src/etc/etc.luna88k/ttys
  11. +5
    -14
      src/etc/etc.mac68k/ttys
  12. +10
    -10
      src/etc/etc.mvme68k/ttys
  13. +20
    -20
      src/etc/etc.mvme88k/ttys
  14. +4
    -4
      src/etc/etc.mvmeppc/ttys
  15. +4
    -4
      src/etc/etc.sgi/ttys
  16. +3
    -1
      src/etc/etc.sparc64/ttys
  17. +5
    -7
      src/etc/etc.vax/ttys
  18. +4
    -4
      src/etc/etc.zaurus/ttys

+ 7
- 7
src/etc/etc.alpha/ttys View File

@ -1,5 +1,5 @@
#
# $OpenBSD: ttys,v 1.12 2002/11/05 00:42:16 miod Exp $
# $OpenBSD: ttys,v 1.13 2008/01/09 17:39:41 miod Exp $
#
# name getty type status comments
@ -7,14 +7,14 @@
# enabled for the correct 'real' device (e.g. one of the serial ports).
# console pseudo-device
console "/usr/libexec/getty std.9600" vt220 off secure
console "/usr/libexec/getty std.9600" vt220 off secure
# Workstation console (framebuffer) ttys
ttyC0 "/usr/libexec/getty std.9600" vt220 on secure
ttyC1 "/usr/libexec/getty std.9600" vt220 on secure
ttyC2 "/usr/libexec/getty std.9600" vt220 on secure
ttyC3 "/usr/libexec/getty std.9600" vt220 on secure
ttyC4 "/usr/libexec/getty std.9600" vt220 on secure
ttyC0 "/usr/libexec/getty std.9600" vt220 on secure
ttyC1 "/usr/libexec/getty std.9600" vt220 on secure
ttyC2 "/usr/libexec/getty std.9600" vt220 on secure
ttyC3 "/usr/libexec/getty std.9600" vt220 on secure
ttyC4 "/usr/libexec/getty std.9600" vt220 on secure
ttyC5 "/usr/libexec/getty std.9600" vt220 off secure
# DEC 3000 Z8530 ("scc") serial ports


+ 14
- 14
src/etc/etc.amd64/ttys View File

@ -1,21 +1,21 @@
#
# $OpenBSD: ttys,v 1.1 2004/01/28 02:11:53 mickey Exp $
# $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
console "/usr/libexec/getty Pc" vt220 off secure
ttyC0 "/usr/libexec/getty Pc" vt220 on secure
ttyC1 "/usr/libexec/getty Pc" vt220 on secure
ttyC2 "/usr/libexec/getty Pc" vt220 on secure
ttyC3 "/usr/libexec/getty Pc" vt220 on secure
ttyC4 "/usr/libexec/getty Pc" vt220 off secure
ttyC5 "/usr/libexec/getty Pc" vt220 on secure
ttyC6 "/usr/libexec/getty Pc" vt220 off secure
ttyC7 "/usr/libexec/getty Pc" vt220 off secure
ttyC8 "/usr/libexec/getty Pc" vt220 off secure
ttyC9 "/usr/libexec/getty Pc" vt220 off secure
ttyCa "/usr/libexec/getty Pc" vt220 off secure
ttyCb "/usr/libexec/getty Pc" vt220 off secure
console "/usr/libexec/getty std.9600" vt220 off secure
ttyC0 "/usr/libexec/getty std.9600" vt220 on secure
ttyC1 "/usr/libexec/getty std.9600" vt220 on secure
ttyC2 "/usr/libexec/getty std.9600" vt220 on secure
ttyC3 "/usr/libexec/getty std.9600" vt220 on secure
ttyC4 "/usr/libexec/getty std.9600" vt220 off secure
ttyC5 "/usr/libexec/getty std.9600" vt220 on secure
ttyC6 "/usr/libexec/getty std.9600" vt220 off secure
ttyC7 "/usr/libexec/getty std.9600" vt220 off secure
ttyC8 "/usr/libexec/getty std.9600" vt220 off secure
ttyC9 "/usr/libexec/getty std.9600" vt220 off secure
ttyCa "/usr/libexec/getty std.9600" vt220 off secure
ttyCb "/usr/libexec/getty std.9600" vt220 off secure
tty00 "/usr/libexec/getty std.9600" unknown off
tty01 "/usr/libexec/getty std.9600" unknown off
tty02 "/usr/libexec/getty std.9600" unknown off


+ 3
- 3
src/etc/etc.armish/ttys View File

@ -1,10 +1,10 @@
#
# $OpenBSD: ttys,v 1.3 2006/06/06 17:47:59 miod Exp $
# $OpenBSD: ttys,v 1.4 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
console "/usr/libexec/getty Pc" vt220 off secure
tty00 "/usr/libexec/getty std.115200" unknown on secure
console "/usr/libexec/getty std.115200" vt220 on secure
tty00 "/usr/libexec/getty std.115200" unknown off secure
tty01 "/usr/libexec/getty std.9600" unknown off secure
tty02 "/usr/libexec/getty std.9600" unknown off
tty03 "/usr/libexec/getty std.9600" unknown off


+ 4
- 6
src/etc/etc.aviion/ttys View File

@ -1,11 +1,9 @@
#
# $OpenBSD: ttys,v 1.1 2006/05/09 21:17:13 miod Exp $
# $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
# If the console is marked insecure, single-user requires
# the root password.
console "/usr/libexec/getty Pc" unknown on secure
console "/usr/libexec/getty std.9600" vt220 on secure
# on-board serial ports (ttyb is the mouse port)
ttya "/usr/libexec/getty Pc" unknown off secure # console
ttyc "/usr/libexec/getty Pc" unknown off
ttya "/usr/libexec/getty std.9600" unknown off secure # console
ttyc "/usr/libexec/getty std.9600" unknown off

+ 1
- 2
src/etc/etc.hp300/ttys View File

@ -1,9 +1,8 @@
#
# $OpenBSD: ttys,v 1.7 2005/01/14 22:39:15 miod Exp $
# $OpenBSD: ttys,v 1.8 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
# main console device
console "/usr/libexec/getty std.9600" vt220 on secure
# graphics console
ttyC0 "/usr/libexec/getty std.9600" vt220 off secure


+ 2
- 2
src/etc/etc.hppa/ttys View File

@ -1,11 +1,11 @@
#
# $OpenBSD: ttys,v 1.4 2003/08/19 02:50:13 mickey Exp $
# $OpenBSD: ttys,v 1.5 2008/01/09 17:39:42 miod Exp $
#
# 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
console "/usr/libexec/getty std.9600" vt220 on secure
ttyC0 "/usr/libexec/getty std.9600" vt220 off secure
ttyD0 "/usr/libexec/getty std.9600" vt220 off secure
tty00 "/usr/libexec/getty std.9600" unknown off secure


+ 2
- 2
src/etc/etc.hppa64/ttys View File

@ -1,11 +1,11 @@
#
# $OpenBSD: ttys,v 1.1 2005/04/01 16:02:16 deraadt Exp $
# $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $
#
# 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
console "/usr/libexec/getty std.9600" vt220 on secure
ttyC0 "/usr/libexec/getty std.9600" vt220 off secure
ttyD0 "/usr/libexec/getty std.9600" vt220 off secure
tty00 "/usr/libexec/getty std.9600" unknown off secure


+ 14
- 14
src/etc/etc.i386/ttys View File

@ -1,21 +1,21 @@
#
# $OpenBSD: ttys,v 1.17 2002/06/09 06:15:14 todd Exp $
# $OpenBSD: ttys,v 1.18 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
console "/usr/libexec/getty Pc" vt220 off secure
ttyC0 "/usr/libexec/getty Pc" vt220 on secure
ttyC1 "/usr/libexec/getty Pc" vt220 on secure
ttyC2 "/usr/libexec/getty Pc" vt220 on secure
ttyC3 "/usr/libexec/getty Pc" vt220 on secure
ttyC4 "/usr/libexec/getty Pc" vt220 off secure
ttyC5 "/usr/libexec/getty Pc" vt220 on secure
ttyC6 "/usr/libexec/getty Pc" vt220 off secure
ttyC7 "/usr/libexec/getty Pc" vt220 off secure
ttyC8 "/usr/libexec/getty Pc" vt220 off secure
ttyC9 "/usr/libexec/getty Pc" vt220 off secure
ttyCa "/usr/libexec/getty Pc" vt220 off secure
ttyCb "/usr/libexec/getty Pc" vt220 off secure
console "/usr/libexec/getty std.9600" vt220 off secure
ttyC0 "/usr/libexec/getty std.9600" vt220 on secure
ttyC1 "/usr/libexec/getty std.9600" vt220 on secure
ttyC2 "/usr/libexec/getty std.9600" vt220 on secure
ttyC3 "/usr/libexec/getty std.9600" vt220 on secure
ttyC4 "/usr/libexec/getty std.9600" vt220 off secure
ttyC5 "/usr/libexec/getty std.9600" vt220 on secure
ttyC6 "/usr/libexec/getty std.9600" vt220 off secure
ttyC7 "/usr/libexec/getty std.9600" vt220 off secure
ttyC8 "/usr/libexec/getty std.9600" vt220 off secure
ttyC9 "/usr/libexec/getty std.9600" vt220 off secure
ttyCa "/usr/libexec/getty std.9600" vt220 off secure
ttyCb "/usr/libexec/getty std.9600" vt220 off secure
tty00 "/usr/libexec/getty std.9600" unknown off
tty01 "/usr/libexec/getty std.9600" unknown off
tty02 "/usr/libexec/getty std.9600" unknown off


+ 2
- 2
src/etc/etc.landisk/ttys View File

@ -1,7 +1,7 @@
#
# $OpenBSD: ttys,v 1.2 2006/12/15 18:59:50 miod Exp $
# $OpenBSD: ttys,v 1.3 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
console "/usr/libexec/getty Pc" vt220 on secure
console "/usr/libexec/getty std.9600" unknown on secure
ttya "/usr/libexec/getty std.9600" unknown off secure

+ 5
- 5
src/etc/etc.luna88k/ttys View File

@ -1,10 +1,10 @@
#
# $OpenBSD: ttys,v 1.1 2004/04/21 18:23:44 miod Exp $
# $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
# If the console is marked insecure, single-user requires
# the root password.
console "/usr/libexec/getty Pc" unknown on secure
console "/usr/libexec/getty std.9600" vt220 on secure
# graphics console
ttyC0 "/usr/libexec/getty std.9600" vt220 off secure
# siotty(4) serial console port
ttya "/usr/libexec/getty Pc" unknown off secure # console
ttya "/usr/libexec/getty std.9600" unknown off secure # console

+ 5
- 14
src/etc/etc.mac68k/ttys View File

@ -1,20 +1,11 @@
#
# $OpenBSD: ttys,v 1.9 2006/03/09 20:49:01 miod Exp $
# $OpenBSD: ttys,v 1.10 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
# If the console is marked insecure, single-user requires
# the root password.
console "/usr/libexec/getty Pc" vt220 off secure
#console "/usr/libexec/getty std.9600" vt220 on secure
# Define the console that we actually run getty on.
# To enable the serial console, mark ttyC0 'off' and turn on the
# console entry configuring it as though it were one of the serial
# ports (e.g., setting the entry to 'std.9600').
ttyC0 "/usr/libexec/getty Pc" vt220 on secure
# Hardwired lines are marked off, by default, so getty(8)
# is quiet when they don't exist.
console "/usr/libexec/getty std.9600" vt220 on secure
# graphics console
ttyC0 "/usr/libexec/getty std.9600" vt220 off secure
# serial lines
tty00 "/usr/libexec/getty std.9600" unknown off secure
tty01 "/usr/libexec/getty std.9600" unknown off secure

+ 10
- 10
src/etc/etc.mvme68k/ttys View File

@ -1,16 +1,16 @@
#
# $OpenBSD: ttys,v 1.7 2002/05/30 06:46:13 deraadt Exp $
# $OpenBSD: ttys,v 1.8 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
# If the console is marked insecure, single-user requires
# the root password.
console "/usr/libexec/getty Pc" unknown on secure
ttya "/usr/libexec/getty Pc" unknown off secure # 147/162 console
ttyb "/usr/libexec/getty Pc" unknown off
ttyc "/usr/libexec/getty Pc" unknown off
ttyd "/usr/libexec/getty Pc" unknown off
tty00 "/usr/libexec/getty Pc" unknown off secure # 167/17x console
tty01 "/usr/libexec/getty Pc" unknown off
tty02 "/usr/libexec/getty Pc" unknown off
tty03 "/usr/libexec/getty Pc" unknown off
console "/usr/libexec/getty std.9600" unknown on secure
ttya "/usr/libexec/getty std.9600" unknown off secure # 147/162 console
ttyb "/usr/libexec/getty std.9600" unknown off
ttyc "/usr/libexec/getty std.9600" unknown off
ttyd "/usr/libexec/getty std.9600" unknown off
tty00 "/usr/libexec/getty std.9600" unknown off secure # 167/17x console
tty01 "/usr/libexec/getty std.9600" unknown off
tty02 "/usr/libexec/getty std.9600" unknown off
tty03 "/usr/libexec/getty std.9600" unknown off

+ 20
- 20
src/etc/etc.mvme88k/ttys View File

@ -1,30 +1,30 @@
#
# $OpenBSD: ttys,v 1.8 2004/01/05 20:11:56 miod Exp $
# $OpenBSD: ttys,v 1.9 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
# If the console is marked insecure, single-user requires
# the root password.
console "/usr/libexec/getty Pc" unknown on secure
console "/usr/libexec/getty std.9600" unknown on secure
# MVME188 dart(4) serial ports
ttya "/usr/libexec/getty Pc" unknown off secure # console
ttyb "/usr/libexec/getty Pc" unknown off
ttya "/usr/libexec/getty std.9600" unknown off secure # console
ttyb "/usr/libexec/getty std.9600" unknown off
# MVME1x7 cl(4) serial ports
tty00 "/usr/libexec/getty Pc" unknown off secure # console
tty01 "/usr/libexec/getty Pc" unknown off
tty02 "/usr/libexec/getty Pc" unknown off
tty03 "/usr/libexec/getty Pc" unknown off
tty00 "/usr/libexec/getty std.9600" unknown off secure # console
tty01 "/usr/libexec/getty std.9600" unknown off
tty02 "/usr/libexec/getty std.9600" unknown off
tty03 "/usr/libexec/getty std.9600" unknown off
# M8120 remaining cl(4) serial ports
tty04 "/usr/libexec/getty Pc" unknown off
tty05 "/usr/libexec/getty Pc" unknown off
tty06 "/usr/libexec/getty Pc" unknown off
tty07 "/usr/libexec/getty Pc" unknown off
tty04 "/usr/libexec/getty std.9600" unknown off
tty05 "/usr/libexec/getty std.9600" unknown off
tty06 "/usr/libexec/getty std.9600" unknown off
tty07 "/usr/libexec/getty std.9600" unknown off
# MVME332 vx(4) serial ports
ttyv0 "/usr/libexec/getty Pc" unknown off
ttyv1 "/usr/libexec/getty Pc" unknown off
ttyv2 "/usr/libexec/getty Pc" unknown off
ttyv3 "/usr/libexec/getty Pc" unknown off
ttyv4 "/usr/libexec/getty Pc" unknown off
ttyv5 "/usr/libexec/getty Pc" unknown off
ttyv6 "/usr/libexec/getty Pc" unknown off
ttyv7 "/usr/libexec/getty Pc" unknown off
ttyv0 "/usr/libexec/getty std.9600" unknown off
ttyv1 "/usr/libexec/getty std.9600" unknown off
ttyv2 "/usr/libexec/getty std.9600" unknown off
ttyv3 "/usr/libexec/getty std.9600" unknown off
ttyv4 "/usr/libexec/getty std.9600" unknown off
ttyv5 "/usr/libexec/getty std.9600" unknown off
ttyv6 "/usr/libexec/getty std.9600" unknown off
ttyv7 "/usr/libexec/getty std.9600" unknown off

+ 4
- 4
src/etc/etc.mvmeppc/ttys View File

@ -1,11 +1,11 @@
#
# $OpenBSD: ttys,v 1.2 2002/06/09 06:15:14 todd Exp $
# $OpenBSD: ttys,v 1.3 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
console "/usr/libexec/getty std.9600" unknown off secure
tty00 "/usr/libexec/getty std.9600" unknown on secure
console "/usr/libexec/getty std.9600" unknown on secure
tty00 "/usr/libexec/getty std.9600" unknown off secure
tty01 "/usr/libexec/getty std.9600" unknown off
tty02 "/usr/libexec/getty std.9600" unknown off
tty03 "/usr/libexec/getty std.9600" unknown off
ttyC0 "/usr/libexec/getty std.9600" vt220 on secure
ttyC0 "/usr/libexec/getty std.9600" vt220 off secure

+ 4
- 4
src/etc/etc.sgi/ttys View File

@ -1,11 +1,11 @@
#
# $OpenBSD: ttys,v 1.2 2007/12/14 16:16:28 jsing Exp $
# $OpenBSD: ttys,v 1.3 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
console "/usr/libexec/getty std.9600" unknown off secure
ttyC0 "/usr/libexec/getty Pc" vt220 on secure
tty00 "/usr/libexec/getty std.9600" unknown on secure
console "/usr/libexec/getty std.9600" vt220 on secure
ttyC0 "/usr/libexec/getty std.9600" vt220 off secure
tty00 "/usr/libexec/getty std.9600" unknown off secure
tty01 "/usr/libexec/getty std.9600" unknown off secure
tty02 "/usr/libexec/getty std.9600" unknown off secure
tty03 "/usr/libexec/getty std.9600" unknown off secure

+ 3
- 1
src/etc/etc.sparc64/ttys View File

@ -1,9 +1,11 @@
#
# $OpenBSD: ttys,v 1.6 2008/01/08 05:08:12 deraadt Exp $
# $OpenBSD: ttys,v 1.7 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
console "/usr/libexec/getty std.9600" sun on secure
# graphics console
ttyC0 "/usr/libexec/getty std.9600" sun off secure
# zs(4)-based
ttya "/usr/libexec/getty std.9600" unknown off secure
ttyb "/usr/libexec/getty std.9600" unknown off secure


+ 5
- 7
src/etc/etc.vax/ttys View File

@ -1,14 +1,12 @@
#
# $OpenBSD: ttys,v 1.5 2002/06/09 06:15:15 todd Exp $
# $OpenBSD: ttys,v 1.6 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
# If the console is marked insecure, single-user requires
# the root password.
console "/usr/libexec/getty std.9600" unknown on secure
# Hardwired lines are marked off, by default, so getty(8)
# is quiet when they don't exist.
console "/usr/libexec/getty std.9600" vt220 on secure
# glass console
ttyC0 "/usr/libexec/getty std.9600" vt220 off secure
# serial lines
tty00 "/usr/libexec/getty std.9600" unknown off secure
tty01 "/usr/libexec/getty std.9600" unknown off secure
tty02 "/usr/libexec/getty std.9600" unknown off secure


+ 4
- 4
src/etc/etc.zaurus/ttys View File

@ -1,11 +1,11 @@
#
# $OpenBSD: ttys,v 1.3 2007/03/26 04:10:25 deraadt Exp $
# $OpenBSD: ttys,v 1.4 2008/01/09 17:39:42 miod Exp $
#
# name getty type status comments
#
console "/usr/libexec/getty Pc" vt220 off secure
ttyC0 "/usr/libexec/getty Pc" vt220 on secure
ttyC1 "/usr/libexec/getty Pc" vt220 off secure
console "/usr/libexec/getty std.9600" vt220 off secure
ttyC0 "/usr/libexec/getty std.9600" vt220 on secure
ttyC1 "/usr/libexec/getty std.9600" vt220 off secure
tty00 "/usr/libexec/getty std.9600" unknown off secure
tty01 "/usr/libexec/getty std.9600" unknown off secure
tty02 "/usr/libexec/getty std.9600" unknown off


Loading…
Cancel
Save