Browse Source

support cua devices on the com.c driver

OPENBSD_2_0
deraadt 28 years ago
parent
commit
27869695ed
3 changed files with 31 additions and 21 deletions
  1. +15
    -4
      src/etc/etc.alpha/MAKEDEV
  2. +7
    -7
      src/etc/etc.amiga/MAKEDEV
  3. +9
    -10
      src/etc/etc.i386/MAKEDEV

+ 15
- 4
src/etc/etc.alpha/MAKEDEV View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $OpenBSD: MAKEDEV,v 1.8 1996/08/28 08:55:18 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.9 1996/08/29 13:22:21 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.
@ -144,12 +144,10 @@ cd*|sd*|vnd*|ccd*)
umask 77
;;
ttyB*|ttyC*|ttyE*)
ttyE*)
type=`expr $i : 'tty\(.\).'`
unit=`expr $i : 'tty.\(.\)'`
case $type in
B) major=15; minor=`expr $unit \* 2` ;;
C) major=26; minor=$unit ;;
E) major=25; minor=$unit ;;
esac
rm -f tty$type$unit
@ -157,6 +155,19 @@ ttyB*|ttyC*|ttyE*)
chown uucp.wheel tty$type$unit
;;
ttyB*|ttyC*)
type=`expr $i : 'tty\(.\).'`
unit=`expr $i : 'tty.\(.\)'`
case $type in
B) major=15; minor=`expr $unit \* 2` ;;
C) major=26; minor=$unit ;;
esac
rm -f tty$type$unit cua$type$unit
mknod tty$type$unit c $major $minor
mknod cua$type$unit c $major `expr $minor + 128`
chown uucp.wheel tty$type$unit cua$type$unit
;;
pty*)
class=`expr $i : 'pty\(.*\)'`
case $class in


+ 7
- 7
src/etc/etc.amiga/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: MAKEDEV,v 1.12 1996/08/28 08:55:20 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.13 1996/08/29 13:22:22 deraadt Exp $
# $NetBSD: MAKEDEV,v 1.21 1996/05/19 21:03:49 veego Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@ -67,8 +67,7 @@
# Terminal ports:
# tty00 standard serial port.
# ttyA* mfc serial ports
# com* ISA COM ports (XXX)
# ttyB* alias for ISA COM ports, this is what the system really wants
# ttyB* ISA COM ports
#
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
@ -434,11 +433,12 @@ bpf*)
chown root.wheel bpf$unit
;;
com*|ttyB*) # (XXX -- com should die)
ttyB*)
unit=`expr $i : '...\(.*\)'`
rm -f com$unit tty$unit
mknod tty$unit c 32 $unit
chown uucp.wheel tty$unit
rm -f ttyB$unit cuaB$unit
mknod ttyB$unit c 32 $unit
mknod cuaB$unit c 32 `expr $unit + 128`
chown uucp.wheel ttyB$unit cuaB$unit
;;
lpt*|lpa*)


+ 9
- 10
src/etc/etc.i386/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: MAKEDEV,v 1.19 1996/08/28 08:55:23 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.20 1996/08/29 13:22:23 deraadt Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@ -57,8 +57,7 @@
# mouse-* "mouse link" (XXX)
#
# Terminal ports:
# com* standard PC COM ports (XXX)
# tty* alias for PC COM ports, this is what the system really wants
# tty* PC COM ports
#
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
@ -91,7 +90,7 @@ case $i in
all)
sh MAKEDEV std fd wt0 fd0 fd1 wd0 wd1 wd2 wd3 sd0 sd1 sd2
sh MAKEDEV tty0 tty1 tty2 tty3 pty0 pty1 st0 st1 ch0 cd0 cd1
sh MAKEDEV tty00 tty01 tty02 tty03 pty0 pty1 st0 st1 ch0 cd0 cd1
sh MAKEDEV mcd0 acd0 vnd0 vnd1 lpa0 lpa1 ccd0 ccd1 ccd2 ccd3
sh MAKEDEV lpt0 lpt1 lpt2 ttyC0 ttyC1 ttyC2 bpf0 bpf1 bpf2 bpf3
sh MAKEDEV ipl tun0 tun1 tun2
@ -102,7 +101,7 @@ all)
;;
floppy)
sh MAKEDEV std wt0 fd0 fd1 wd0 wd1 sd0 sd1 sd2 tty0 tty1
sh MAKEDEV std wt0 fd0 fd1 wd0 wd1 sd0 sd1 sd2 tty00 tty01
sh MAKEDEV st0 st1 cd0 cd1 mcd0 acd0 ttyC0
;;
@ -201,12 +200,12 @@ ccd*|fd*|sd*|vnd*|wd*)
umask 77
;;
com*|tty*) # (XXX -- com should die)
tty*)
unit=`expr $i : '...\(.*\)'`
rm -f com$unit tty0$unit cua0$unit
mknod tty0$unit c 8 $unit
mknod cua0$unit c 8 `expr $unit + 128`
chown uucp.wheel tty0$unit cua0$unit
rm -f com$unit tty$unit cua$unit
mknod tty$unit c 8 $unit
mknod cua$unit c 8 `expr $unit + 128`
chown uucp.wheel tty$unit cua$unit
;;
pty*)


Loading…
Cancel
Save