Fix vnd minor number calculation.

This commit is contained in:
mycroft 1994-01-13 21:21:13 +00:00
parent e890eb6415
commit a01d9d7e72

View File

@ -258,13 +258,12 @@ cd*|mcd*)
;;
vnd*)
umask 2 ; unit=`expr $i : '...\(.*\)'`
unit=`expr $i : '...\(.*\)'`
name=vnd; blk=14; chr=41
mknod ${name}${unit}c b $blk $unit
mknod r${name}${unit}c c $chr $unit
chown root.operator ${name}${unit}c r${name}${unit}c
mknod ${name}${unit}c b $blk `expr $unit '*' 8 + 2`
mknod r${name}${unit}c c $chr `expr $unit '*' 8 + 2`
chgrp operator ${name}${unit}c r${name}${unit}c
chmod 640 ${name}${unit}c r${name}${unit}c
umask 77
;;
lpt*)