|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: MAKEDEV,v 1.16 1997/02/16 03:57:28 rahnds Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.17 1997/04/22 20:26:38 gvf 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. |
|
|
# |
|
|
# |
|
|
# $Id: MAKEDEV,v 1.16 1997/02/16 03:57:28 rahnds Exp $ |
|
|
|
|
|
|
|
|
# $Id: MAKEDEV,v 1.17 1997/04/22 20:26:38 gvf 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, |
|
@ -187,8 +187,6 @@ sd*|vnd*|ccd*) |
|
|
0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) |
|
|
0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) |
|
|
mknod ${name}${unit}c b $blk `expr $unit '*' 16 + 2` |
|
|
mknod ${name}${unit}c b $blk `expr $unit '*' 16 + 2` |
|
|
mknod r${name}${unit}c c $chr `expr $unit '*' 16 + 2` |
|
|
mknod r${name}${unit}c c $chr `expr $unit '*' 16 + 2` |
|
|
if [ $name != cd -a $name != vnd ] |
|
|
|
|
|
then |
|
|
|
|
|
mknod ${name}${unit}a b $blk `expr $unit '*' 16 + 0` |
|
|
mknod ${name}${unit}a b $blk `expr $unit '*' 16 + 0` |
|
|
mknod ${name}${unit}b b $blk `expr $unit '*' 16 + 1` |
|
|
mknod ${name}${unit}b b $blk `expr $unit '*' 16 + 1` |
|
|
mknod ${name}${unit}d b $blk `expr $unit '*' 16 + 3` |
|
|
mknod ${name}${unit}d b $blk `expr $unit '*' 16 + 3` |
|
@ -219,7 +217,6 @@ sd*|vnd*|ccd*) |
|
|
mknod r${name}${unit}n c $chr `expr $unit '*' 16 + 13` |
|
|
mknod r${name}${unit}n c $chr `expr $unit '*' 16 + 13` |
|
|
mknod r${name}${unit}o c $chr `expr $unit '*' 16 + 14` |
|
|
mknod r${name}${unit}o c $chr `expr $unit '*' 16 + 14` |
|
|
mknod r${name}${unit}p c $chr `expr $unit '*' 16 + 15` |
|
|
mknod r${name}${unit}p c $chr `expr $unit '*' 16 + 15` |
|
|
fi |
|
|
|
|
|
chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p] |
|
|
chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p] |
|
|
chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] |
|
|
chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] |
|
|
;; |
|
|
;; |
|
|