summaryrefslogtreecommitdiff
path: root/etc/etc.i386/MAKEDEV
diff options
context:
space:
mode:
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 ))"