summaryrefslogtreecommitdiff
path: root/etc/etc.alpha
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 /etc/etc.alpha
parentd70f534eaf8b3885a0ce5c73974a72bd0e6380ce (diff)
support cua devices on the com.c driver
Diffstat (limited to 'etc/etc.alpha')
-rw-r--r--etc/etc.alpha/MAKEDEV19
1 files changed, 15 insertions, 4 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