summaryrefslogtreecommitdiff
path: root/etc/etc.i386/MAKEDEV
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-22 05:26:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-22 05:26:43 +0000
commit207d19a65651f6733f484644e3a4bf86b3b1a421 (patch)
tree27242479c1580c75ae1aedeeaf0514822a86de34 /etc/etc.i386/MAKEDEV
parent77362928d3b304b02ea5229b5f4d6f02c9bd737f (diff)
corrections from mickey
Diffstat (limited to 'etc/etc.i386/MAKEDEV')
-rw-r--r--etc/etc.i386/MAKEDEV5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index 557d257b6cc..7f06e96c037 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.44 1997/05/14 15:41:13 niklas Exp $
+# $OpenBSD: MAKEDEV,v 1.45 1997/05/22 05:26:42 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.
@@ -178,6 +178,7 @@ wt*)
rd*)
umask 2 ; unit=`expr $i : '.*d\(.*\)'`
+ rm -f rd${unit}a rd${unit}c rrd${unit}a rrd${unit}c
mknod rd${unit}a b 17 `expr $unit '*' 16 + 0`
mknod rd${unit}c b 17 `expr $unit '*' 16 + 2`
mknod rrd${unit}a c 47 `expr $unit '*' 16 + 0`
@@ -365,7 +366,7 @@ pty*)
while [ $n -lt 16 ]
do
nam=$name`hex $n`
- rm -rf {tty,pty}$n
+ rm -rf {tty,pty}$nam
mknod tty$nam c 5 "$(( $offset + $n ))"
mknod pty$nam c 6 "$(( $offset + $n ))"
n="$(( $n + 1 ))"