diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-05-17 19:12:04 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-05-17 19:12:04 +0000 |
commit | 5d525f9e158ec122f36724f3578f6ea4e0ff647e (patch) | |
tree | be65cc045ba3b27de8bba9a58b52153875b8b162 | |
parent | 701d6b675d00b72f5d656253f531b223fa946bd4 (diff) |
fix vnd
-rw-r--r-- | etc/etc.sun3/MAKEDEV | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/etc/etc.sun3/MAKEDEV b/etc/etc.sun3/MAKEDEV index fc4c9cc6aa0..ac7c737dfe8 100644 --- a/etc/etc.sun3/MAKEDEV +++ b/etc/etc.sun3/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.16 1997/05/14 15:41:22 niklas Exp $ +# $OpenBSD: MAKEDEV,v 1.17 1997/05/17 19:12:03 kstailey Exp $ # $NetBSD: MAKEDEV,v 1.8 1996/03/03 16:54:17 thorpej Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -159,13 +159,14 @@ pty*) done ;; -cd*|sd*|xy*|ccd*|rd*) +cd*|sd*|xy*|ccd*|rd*|vnd*) case $arg in cd*) name=cd; blk=18; chr=58;; sd*) name=sd; blk=7; chr=17;; xy*) name=xy; blk=3; chr=9 ;; ccd*) name=ccd; blk=9; chr=33;; rd*) name=rd; blk=13; chr=52;; + vnd*) name=vnd; blk=5; chr=19; esac case $unit in 0|1|2|3|4) offset=`expr $unit \* 8`;; @@ -180,41 +181,15 @@ cd*|sd*|xy*|ccd*|rd*) minor=`expr $offset + $2` mk $name$unit$1 b $blk $minor 640 operator mk r$name$unit$1 c $chr $minor 640 operator + if [ $name = vnd ]; then + sminor=`expr $minor + 128` + mk s$name$unit$1 b $blk $sminor 640 operator + mk rs$name$unit$1 c $chr $sminor 640 operator + fi ) done ;; -vnd*) - umask 2 ; unit=`expr $i : 'vnd\(.*\)'` - for name in vnd svnd; do - blk=5; 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 '*' 8 + $off + 0` - mknod ${name}${unit}b b $blk `expr $unit '*' 8 + $off + 1` - mknod ${name}${unit}c b $blk `expr $unit '*' 8 + $off + 2` - mknod ${name}${unit}d b $blk `expr $unit '*' 8 + $off + 3` - mknod ${name}${unit}e b $blk `expr $unit '*' 8 + $off + 4` - mknod ${name}${unit}f b $blk `expr $unit '*' 8 + $off + 5` - mknod ${name}${unit}g b $blk `expr $unit '*' 8 + $off + 6` - mknod ${name}${unit}h b $blk `expr $unit '*' 8 + $off + 7` - mknod r${name}${unit}a c $chr `expr $unit '*' 8 + $off + 0` - mknod r${name}${unit}b c $chr `expr $unit '*' 8 + $off + 1` - mknod r${name}${unit}c c $chr `expr $unit '*' 8 + $off + 2` - mknod r${name}${unit}d c $chr `expr $unit '*' 8 + $off + 3` - mknod r${name}${unit}e c $chr `expr $unit '*' 8 + $off + 4` - mknod r${name}${unit}f c $chr `expr $unit '*' 8 + $off + 5` - mknod r${name}${unit}g c $chr `expr $unit '*' 8 + $off + 6` - mknod r${name}${unit}h c $chr `expr $unit '*' 8 + $off + 7` - chown root.operator ${name}${unit}[a-h] r${name}${unit}[a-h] - chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h] - done - umask 77 - ;; - st*) name=st; blk=11; chr=18; offset=`expr $unit \* 16`; |