Browse Source

make rd device. only make a & c partitions raw & block

OPENBSD_2_1
deraadt 27 years ago
parent
commit
f840874464
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      src/etc/etc.i386/MAKEDEV

+ 7
- 5
src/etc/etc.i386/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: MAKEDEV,v 1.35 1996/12/14 18:23:57 millert Exp $
# $OpenBSD: MAKEDEV,v 1.36 1997/02/06 10:02:13 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.
@ -159,10 +159,12 @@ wt*)
rd*)
umask 2 ; unit=`expr $i : '.*d\(.*\)'`
mknod rd${unit} b 17 $unit
# mknod rrd${unit} c 9 $unit
chown root.operator rd${unit} rrd${unit}
chmod 640 rd${unit} rrd${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 47 `expr $unit '*' 16 + 0`
mknod rrd${unit}c c 47 `expr $unit '*' 16 + 2`
chown root.operator rd${unit}[ac] rrd${unit}[ac]
chmod 640 rd${unit}[ac] rrd${unit}[ac]
umask 77
;;


Loading…
Cancel
Save