summaryrefslogtreecommitdiff
path: root/etc/etc.mvme68k/MAKEDEV
diff options
context:
space:
mode:
Diffstat (limited to 'etc/etc.mvme68k/MAKEDEV')
-rw-r--r--etc/etc.mvme68k/MAKEDEV54
1 files changed, 50 insertions, 4 deletions
diff --git a/etc/etc.mvme68k/MAKEDEV b/etc/etc.mvme68k/MAKEDEV
index 8ed0aea806d..af8134e0532 100644
--- a/etc/etc.mvme68k/MAKEDEV
+++ b/etc/etc.mvme68k/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.18 1997/05/13 05:34:54 millert Exp $
+# $OpenBSD: MAKEDEV,v 1.19 1997/05/14 15:41:15 niklas Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -33,7 +33,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Id: MAKEDEV,v 1.18 1997/05/13 05:34:54 millert Exp $
+# $Id: MAKEDEV,v 1.19 1997/05/14 15:41:15 niklas Exp $
#
# Device "make" file. Valid arguments:
# all makes all known devices, including local devices,
@@ -175,11 +175,10 @@ st*)
umask 77
;;
-sd*|vnd*|ccd*)
+sd*|ccd*)
umask 2 ; unit=`expr $i : '.*[^0-9]\([0-9]*\)'`
case $i in
sd*) name=sd; blk=4; chr=8;;
- vnd*) name=vnd; blk=6; chr=19;;
#ccd*) name=ccd; blk=5; chr=7;;
esac
rm -f $name$unit? r$name$unit?
@@ -227,6 +226,53 @@ sd*|vnd*|ccd*)
umask 77
;;
+vnd*)
+ umask 2 ; unit=`expr $i : 'vnd\(.*\)'`
+ for name in vnd svnd; do
+ blk=6; chr=19;
+ case $name in
+ vnd) off=0;;
+ svnd) off=128;;
+ esac
+ rm -f $name$unit? r$name$unit?
+ mknod ${name}${unit}a b $blk `expr $unit '*' 16 + $off + 0`
+ mknod ${name}${unit}b b $blk `expr $unit '*' 16 + $off + 1`
+ mknod ${name}${unit}c b $blk `expr $unit '*' 16 + $off + 2`
+ mknod ${name}${unit}d b $blk `expr $unit '*' 16 + $off + 3`
+ mknod ${name}${unit}e b $blk `expr $unit '*' 16 + $off + 4`
+ mknod ${name}${unit}f b $blk `expr $unit '*' 16 + $off + 5`
+ mknod ${name}${unit}g b $blk `expr $unit '*' 16 + $off + 6`
+ mknod ${name}${unit}h b $blk `expr $unit '*' 16 + $off + 7`
+ mknod ${name}${unit}i b $blk `expr $unit '*' 16 + $off + 8`
+ mknod ${name}${unit}j b $blk `expr $unit '*' 16 + $off + 9`
+ mknod ${name}${unit}k b $blk `expr $unit '*' 16 + $off + 10`
+ mknod ${name}${unit}l b $blk `expr $unit '*' 16 + $off + 11`
+ mknod ${name}${unit}m b $blk `expr $unit '*' 16 + $off + 12`
+ mknod ${name}${unit}n b $blk `expr $unit '*' 16 + $off + 13`
+ mknod ${name}${unit}o b $blk `expr $unit '*' 16 + $off + 14`
+ mknod ${name}${unit}p b $blk `expr $unit '*' 16 + $off + 15`
+ mknod r${name}${unit}a c $chr `expr $unit '*' 16 + $off + 0`
+ mknod r${name}${unit}b c $chr `expr $unit '*' 16 + $off + 1`
+ mknod r${name}${unit}c c $chr `expr $unit '*' 16 + $off + 2`
+ mknod r${name}${unit}d c $chr `expr $unit '*' 16 + $off + 3`
+ mknod r${name}${unit}e c $chr `expr $unit '*' 16 + $off + 4`
+ mknod r${name}${unit}f c $chr `expr $unit '*' 16 + $off + 5`
+ mknod r${name}${unit}g c $chr `expr $unit '*' 16 + $off + 6`
+ mknod r${name}${unit}h c $chr `expr $unit '*' 16 + $off + 7`
+ mknod r${name}${unit}i c $chr `expr $unit '*' 16 + $off + 8`
+ mknod r${name}${unit}j c $chr `expr $unit '*' 16 + $off + 9`
+ mknod r${name}${unit}k c $chr `expr $unit '*' 16 + $off + 10`
+ mknod r${name}${unit}l c $chr `expr $unit '*' 16 + $off + 11`
+ mknod r${name}${unit}m c $chr `expr $unit '*' 16 + $off + 12`
+ mknod r${name}${unit}n c $chr `expr $unit '*' 16 + $off + 13`
+ mknod r${name}${unit}o c $chr `expr $unit '*' 16 + $off + 14`
+ mknod r${name}${unit}p c $chr `expr $unit '*' 16 + $off + 15`
+ chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p]
+ chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p]
+ done
+ umask 77
+ ;;
+
cd*)
umask 2 ; unit=`expr $i : '..\(.*\)'`
case $i in