Browse Source

add missing rm commands; todd ok

OPENBSD_3_1
deraadt 23 years ago
parent
commit
9e6fdd3493
2 changed files with 8 additions and 6 deletions
  1. +2
    -1
      src/etc/etc.hp300/MAKEDEV
  2. +6
    -5
      src/etc/etc.mvme68k/MAKEDEV

+ 2
- 1
src/etc/etc.hp300/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.35 2001/06/28 02:58:53 kjc Exp $
# $OpenBSD: MAKEDEV,v 1.36 2002/01/04 03:00:44 deraadt Exp $
# $NetBSD: MAKEDEV,v 1.12 1995/11/05 23:50:22 thorpej Exp $ # $NetBSD: MAKEDEV,v 1.12 1995/11/05 23:50:22 thorpej Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
@ -207,6 +207,7 @@ tun*)
rd*) rd*)
umask 2 ; unit=`expr $i : '.*d\(.*\)'` umask 2 ; unit=`expr $i : '.*d\(.*\)'`
rm -f rd$unit? rrd$unit?
mknod rd${unit}a b 8 `expr $unit '*' 16 + 0` mknod rd${unit}a b 8 `expr $unit '*' 16 + 0`
mknod rd${unit}c b 8 `expr $unit '*' 16 + 2` mknod rd${unit}c b 8 `expr $unit '*' 16 + 2`
mknod rrd${unit}a c 34 `expr $unit '*' 16 + 0` mknod rrd${unit}a c 34 `expr $unit '*' 16 + 0`


+ 6
- 5
src/etc/etc.mvme68k/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.33 2001/06/28 02:58:55 kjc Exp $
# $OpenBSD: MAKEDEV,v 1.34 2002/01/04 03:00:44 deraadt Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
# All rights reserved. # All rights reserved.
@ -33,7 +33,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE. # SUCH DAMAGE.
# #
# $OpenBSD: MAKEDEV,v 1.33 2001/06/28 02:58:55 kjc Exp $
# $OpenBSD: MAKEDEV,v 1.34 2002/01/04 03:00:44 deraadt Exp $
# #
# Device "make" file. Valid arguments: # Device "make" file. Valid arguments:
# all makes all known devices, including local devices, # all makes all known devices, including local devices,
@ -384,9 +384,10 @@ pty*)
umask 0 umask 0
eval `echo $offset $name | awk ' { b=$1; n=$2 } END { eval `echo $offset $name | awk ' { b=$1; n=$2 } END {
for (i = 0; i < 16; i++) for (i = 0; i < 16; i++)
printf("mknod tty%s%x c 4 %d;" \
"mknod pty%s%x c 5 %d; ", \
n, i, b+i, n, i, b+i); }'`
printf("rm -f tty%s%x pty%s%x;" \
"mknod tty%s%x c 4 %d;" \
"mknod pty%s%x c 5 %d; ", \
n, i, n, i, n, i, b+i, n, i, b+i); }'`
umask 77 umask 77
;; ;;
esac esac


Loading…
Cancel
Save