summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-29 13:22:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-29 13:22:24 +0000
commit711022447536ce467e8d9cde753850e73699a230 (patch)
tree9ba3364efbaac9b9cb505a5afe35fc0595fb4555
parentd70f534eaf8b3885a0ce5c73974a72bd0e6380ce (diff)
support cua devices on the com.c driver
-rw-r--r--etc/etc.alpha/MAKEDEV19
-rw-r--r--etc/etc.amiga/MAKEDEV14
-rw-r--r--etc/etc.i386/MAKEDEV19
3 files changed, 31 insertions, 21 deletions
diff --git a/etc/etc.alpha/MAKEDEV b/etc/etc.alpha/MAKEDEV
index 20b6e0d28aa..4c5e56f3508 100644
--- a/etc/etc.alpha/MAKEDEV
+++ b/etc/etc.alpha/MAKEDEV
@@ -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
diff --git a/etc/etc.amiga/MAKEDEV b/etc/etc.amiga/MAKEDEV
index 42ef694610a..e4f9d1c3b61 100644
--- a/etc/etc.amiga/MAKEDEV
+++ b/etc/etc.amiga/MAKEDEV
@@ -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*)
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index d011f9f9456..7ddbead83f5 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/MAKEDEV
@@ -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*)