diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 1998-09-28 06:16:31 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 1998-09-28 06:16:31 +0000 |
commit | de339126335c5eb734c6d10399dba710472e408d (patch) | |
tree | 3cd841e30dc97189b22546958dd50f6531c8866b /etc/etc.sparc | |
parent | 176aef37c51d18ce28b0af043c7ec11b1a05c9bc (diff) |
rm -f before creation
Diffstat (limited to 'etc/etc.sparc')
-rw-r--r-- | etc/etc.sparc/MAKEDEV | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV index c2122753f70..2f847f733d9 100644 --- a/etc/etc.sparc/MAKEDEV +++ b/etc/etc.sparc/MAKEDEV @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: MAKEDEV,v 1.49 1998/09/25 11:11:59 todd Exp $ +# $OpenBSD: MAKEDEV,v 1.50 1998/09/28 06:16:30 todd Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -95,6 +95,7 @@ fi # SunOS shell support functions if [ "$os" = "SunOS" ] then +PATH=$PATH:/usr/etc # SunOS has chown in /usr/etc add () { expr $1 + $2 @@ -252,34 +253,42 @@ fd) ;; bwtwo*) + rm -f bwtwo$unit mknod bwtwo$unit c 27 $unit; chmod 666 bwtwo$unit ;; cgtwo*) + rm -f bwtwo$unit mknod cgtwo$unit c 31 $unit; chmod 666 cgtwo$unit ;; cgthree*) + rm -f bwtwo$unit mknod cgthree$unit c 55 $unit; chmod 666 cgthree$unit ;; cgfour[0-9]*) + rm -f cgfour$unit mknod cgfour$unit c 39 $unit; chmod 666 cgfour$unit ;; cgsix*) + rm -f cgsix$unit mknod cgsix$unit c 67 $unit; chmod 666 cgsix$unit ;; cgeight*) + rm -f cgeight$unit mknod cgeight$unit c 64 $unit; chmod 666 cgeight$unit ;; cgfourteen*) + rm -f cgfourteen$unit mknod cgfourteen$unit c 99 $unit; chmod 666 cgfourteen$unit ;; tcx*) + rm -f cgfourteen$unit mknod tcx$unit c 109 $unit; chmod 666 tcx$unit ;; @@ -473,6 +482,7 @@ vnd*) rd*) umask 2 ; unit=`expr $i : '.*d\(.*\)'` + rm -f rd${unit}* 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 106 `expr $unit '*' 16 + 0` |