Browse Source

move console ttys around. serial becomes tty0?, console ttyC?

OPENBSD_2_9
deraadt 24 years ago
parent
commit
6124f1ee8a
7 changed files with 38 additions and 37 deletions
  1. +16
    -16
      src/etc/etc.alpha/MAKEDEV
  2. +1
    -1
      src/etc/etc.alpha/fbtab
  3. +6
    -6
      src/etc/etc.alpha/ttys
  4. +1
    -0
      src/etc/etc.i386/fbtab
  5. +11
    -11
      src/etc/etc.powerpc/MAKEDEV
  6. +1
    -1
      src/etc/etc.powerpc/fbtab
  7. +2
    -2
      src/etc/etc.powerpc/ttys

+ 16
- 16
src/etc/etc.alpha/MAKEDEV View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $OpenBSD: MAKEDEV,v 1.48 2000/09/13 22:12:39 ericj Exp $
# $OpenBSD: MAKEDEV,v 1.49 2001/01/30 08:34:09 deraadt Exp $
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@ -52,8 +52,8 @@
#
# Terminal ports:
# ttyB? DEC 3000 ZS8530 ("scc") serial ports
# ttyC? AlphaStation NS16550 ("com") serial ports
# ttyE? Workstation console ("wscons") tty emulators
# tty0? AlphaStation NS16550 ("com") serial ports
# ttyC? Workstation console ("wscons") tty emulators
#
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
@ -149,12 +149,12 @@ all)
sh $this ccd0 ccd1 ccd2 ccd3 wd0 wd1 wd2 wd3
sh $this bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9
sh $this tun0 tun1 tun2 tun3
sh $this ttyB0 ttyB1 ttyC0 ttyC1 lkm
sh $this ttyB0 ttyB1 tty00 tty01 lkm
sh $this mmclock lpa0 lpt0 random ipl
sh $this uk0 uk1 ss0 ss1
sh $this ttyc0 ttyc1 ttyc2 ttyc3 ttyc4 ttyc5 ttyc6 ttyc7
sh $this local xfs0
sh $this wscons ttyEcfg
sh $this wscons ttyCcfg
;;
raminst)
@ -162,16 +162,16 @@ raminst)
sh $this sd0 sd1 sd2 wd0 st0
sh $this cd0
sh $this rd0 bpf0
sh $this ttyB0 ttyB1 ttyC0 ttyC1 ttyE0 ttyE1 pty0
sh $this ttyB0 ttyB1 tty00 tty01 ttyC0 ttyC1 pty0
sh $this wsmouse0 wskbd0
sh $this ttyEcfg
sh $this ttyCcfg
;;
wscons)
sh $this ttyE0 ttyE1 ttyE2 ttyE3 ttyE4 ttyE5 ttyE6 ttyE7
sh $this ttyC0 ttyC1 ttyC2 ttyC3 ttyC4 ttyC5 ttyC6 ttyC7
sh $this wsmouse0 wsmouse1 wsmouse2 wsmouse3
sh $this wskbd0 wskbd1 wskbd2 wskbd3
sh $this ttyEcfg wsmux
sh $this ttyCcfg wsmux
;;
wsmux|wskbd|wsmouse)
@ -316,28 +316,28 @@ cd*)
umask 77
;;
ttyEcfg)
ttyCcfg)
rm -f $i
mknod $i c 25 255
chown root:wheel $i
;;
ttyE*)
type=E
unit=${i##ttyE}
ttyC*)
type=C
unit=${i##ttyC}
case $type in
E) major=25; minor=$unit ;;
C) major=25; minor=$unit ;;
esac
rm -f tty$type$unit
mknod tty$type$unit c $major $minor
chown root.wheel tty$type$unit
;;
ttyB*|ttyC*|ttyc*)
ttyB*|tty0*|ttyc*)
unit=${i##tty?}
case $i in
ttyB*) type=B; major=15; minor=`mult $unit 2`;;
ttyC*) type=C; major=26; minor=$unit ;;
tty0*) type=0; major=26; minor=$unit ;;
ttyc*) type=c; major=38; minor=$unit ;;
esac
rm -f tty$type$unit cua$type$unit


+ 1
- 1
src/etc/etc.alpha/fbtab View File

@ -1 +1 @@
/dev/ttyE0 0600 /dev/wsmouse:/dev/wskbd:/dev/ttyE0
/dev/ttyC0 0600 /dev/console:/dev/wsmouse:/dev/wskbd

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

@ -1,5 +1,5 @@
#
# $OpenBSD: ttys,v 1.8 2000/09/09 04:50:40 ericj Exp $
# $OpenBSD: ttys,v 1.9 2001/01/30 08:34:09 deraadt Exp $
#
# name getty type status comments
@ -10,13 +10,13 @@
console "/usr/libexec/getty std.9600" vt100 on secure
# Workstation console (framebuffer) ttys
ttyE0 "/usr/libexec/getty std.9600" vt100 off secure
ttyE1 "/usr/libexec/getty std.9600" vt100 off secure
ttyC0 "/usr/libexec/getty std.9600" vt100 off secure
ttyC1 "/usr/libexec/getty std.9600" vt100 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
ttyB1 "/usr/libexec/getty std.9600" unknown off
# AlphaStation NS16550 ("com") serial ports
ttyC0 "/usr/libexec/getty std.9600" unknown off secure
ttyC1 "/usr/libexec/getty std.9600" unknown off secure
tty00 "/usr/libexec/getty std.9600" unknown off secure
tty01 "/usr/libexec/getty std.9600" unknown off

+ 1
- 0
src/etc/etc.i386/fbtab View File

@ -1 +1,2 @@
/dev/ttyC0 0600 /dev/console
/dev/ttyC0 0600 /dev/console:/dev/wskbd0:/dev/wsmouse0

+ 11
- 11
src/etc/etc.powerpc/MAKEDEV View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $OpenBSD: MAKEDEV,v 1.35 2001/01/30 03:02:21 drahn Exp $
# $OpenBSD: MAKEDEV,v 1.36 2001/01/30 08:34:09 deraadt Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -45,7 +45,7 @@
# raid* RAIDframe disk devices
#
# Terminal ports:
# ttyE* wscons
# ttyC* wscons
# tty* standard built-in serial ports (2)
#
# Pointing devices:
@ -153,7 +153,7 @@ all)
sh $this ccd0 ccd1 ccd2 ccd3
sh $this raid0 raid1 raid2 raid3
sh $this rd0 ipl
sh $this ttyo0 ttyE0 ttyEcfg
sh $this ttyo0 ttyC0 ttyCcfg
sh $this tty00 tty01 tty02 tty03 pty0 pty1
sh $this bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9
sh $this tun0 tun1 tun2 tun3
@ -493,17 +493,17 @@ utty*)
;;
ttyEcfg)
ttyCcfg)
major=67
minor=255
rm -f ttyEcfg
mknod ttyEcfg c $major $minor
chown root.wheel ttyEcfg
rm -f ttyCcfg
mknod ttyCcfg c $major $minor
chown root.wheel ttyCcfg
;;
ttyE*)
type=E
unit=${i##ttyE}
ttyC*)
type=C
unit=${i##ttyC}
major=67
minor=$unit
rm -f tty$type$unit
@ -585,7 +585,7 @@ ss*)
;;
wscons*)
unit=${i##*[a-z]}
sh $this ttyE${unit} wskbd${unit} wsmouse${unit}
sh $this ttyC${unit} wskbd${unit} wsmouse${unit}
;;
wskbd*)
unit=${i##*[a-z]}


+ 1
- 1
src/etc/etc.powerpc/fbtab View File

@ -1,4 +1,4 @@
/dev/ttya 0600 /dev/console
/dev/tty00 0600 /dev/console
/dev/ttyo0 0600 /dev/console
/dev/ttyE0 0600 /dev/console:/dev/wskbd0:/dev/wsmouse0
/dev/ttyC0 0600 /dev/console:/dev/wskbd0:/dev/wsmouse0

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

@ -1,5 +1,5 @@
#
# $OpenBSD: ttys,v 1.10 2000/09/06 02:54:26 rahnds Exp $
# $OpenBSD: ttys,v 1.11 2001/01/30 08:34:09 deraadt Exp $
#
# name getty type status comments
#
@ -9,4 +9,4 @@ 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
ttyo0 "/usr/libexec/getty std.9600" vt220 off secure
ttyE0 "/usr/libexec/getty std.9600" vt100 on secure
ttyC0 "/usr/libexec/getty std.9600" vt100 on secure

Loading…
Cancel
Save