diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-05-14 15:41:27 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-05-14 15:41:27 +0000 |
commit | 608c5080a0beb136d4774f197f26ffe86af9af29 (patch) | |
tree | ec8f76f9df3daccaadc63d18fbc57dfb21a6e398 /etc/etc.pc532/MAKEDEV | |
parent | d64d6ea66acb951531c0a552d6ab3876ed593580 (diff) |
Make svnd nodes too, please test this on your port
Diffstat (limited to 'etc/etc.pc532/MAKEDEV')
-rw-r--r-- | etc/etc.pc532/MAKEDEV | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/etc/etc.pc532/MAKEDEV b/etc/etc.pc532/MAKEDEV index 7cb70c8dbf7..ee024e1bcae 100644 --- a/etc/etc.pc532/MAKEDEV +++ b/etc/etc.pc532/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.10 1997/05/13 05:34:55 millert Exp $ +# $OpenBSD: MAKEDEV,v 1.11 1997/05/14 15:41:17 niklas Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -114,11 +114,10 @@ rd*) umask 77 ;; -sd*|vnd*|ccd*) +sd*|ccd*) umask 2 ; unit=`expr $i : '.*d\(.*\)'` case $i in sd*) name=sd; blk=0; chr=3;; - vnd*) name=vnd; blk=5; chr=13;; ccd*) name=ccd; blk=6; chr=18;; esac rm -f $name$unit? r$name$unit? @@ -143,6 +142,37 @@ sd*|vnd*|ccd*) umask 77 ;; +vnd*) + umask 2 ; unit=`expr $i : 'vnd\(.*\)'` + for name in vnd svnd; do + blk=5; chr=13; + 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 + ;; + tty*) unit=`expr $i : '...\(.*\)'` mknod tty0$unit c 8 $unit |