From 207d19a65651f6733f484644e3a4bf86b3b1a421 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 22 May 1997 05:26:43 +0000 Subject: corrections from mickey --- etc/etc.i386/MAKEDEV | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'etc/etc.i386') 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 ))" -- cgit v1.2.3