summaryrefslogtreecommitdiff
path: root/etc/etc.i386/MAKEDEV
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2002-02-14 17:46:16 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2002-02-14 17:46:16 +0000
commit21627bedb01e48b190d1b159750facb3b627afbf (patch)
tree3763f47254edd23a7174098eefc7494b47d04c4c /etc/etc.i386/MAKEDEV
parent42b72c0863b27a0f8c4fbd5e24bbcd4550f696bd (diff)
sync
Diffstat (limited to 'etc/etc.i386/MAKEDEV')
-rw-r--r--etc/etc.i386/MAKEDEV36
1 files changed, 13 insertions, 23 deletions
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index 06660e78758..d9ec2e03e74 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/MAKEDEV
@@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
-# OpenBSD: etc.i386/MAKEDEV.md,v 1.3 2002/02/09 16:59:50 deraadt Exp
-# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
+# OpenBSD: etc.i386/MAKEDEV.md,v 1.4 2002/02/14 13:29:20 todd Exp
+# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
-# $OpenBSD: MAKEDEV,v 1.118 2002/02/14 05:55:09 todd Exp $
+# $OpenBSD: MAKEDEV,v 1.119 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@@ -299,7 +299,9 @@ ses*)
;;
ss*)
- M ss$U c 19 $U 440 operator
+ M ss$U c 19 $(($U*16)) 640 operator
+ M nss$U c 19 $(($(($U*16))+1)) 640 operator
+ M enss$U c 19 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;
@@ -428,29 +430,17 @@ lpt*|lpa*)
;;
pty*)
- case $U in
- 0) off=0 name=p;;
- 1) off=16 name=q;;
- 2) off=32 name=r;;
- 3) off=48 name=s;;
- 4) off=64 name=t;;
- 5) off=80 name=u;;
- 6) off=96 name=v;;
- 7) off=112 name=w;;
- 8) off=128 name=x;;
- 9) off=144 name=y;;
- 10) off=160 name=z;;
- 11) off=176 name=P;;
- 12) off=192 name=Q;;
- 13) off=206 name=R;;
- 14) off=224 name=S;;
- 15) off=240 name=T;;
- *) echo bad unit for pty in: $i; continue;;
- esac
+ if [ $U -gt 15 ]; then
+ echo bad unit for pty in: $i
+ continue
+ fi
+ set -A tbl p q r s t u v w x y z P Q R S T
+ name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
+ off=$(($U*16))
M tty$nam c 5 $(($off+$n))
M pty$nam c 6 $(($off+$n))
n=$(($n+1))