Browse Source

fix vnd

OPENBSD_2_1
kstailey 28 years ago
parent
commit
fa8a7b00ed
1 changed files with 8 additions and 33 deletions
  1. +8
    -33
      src/etc/etc.sun3/MAKEDEV

+ 8
- 33
src/etc/etc.sun3/MAKEDEV View File

@ -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`;


Loading…
Cancel
Save