Browse Source

Distance between sd/st/cd etc is now 16

OPENBSD_2_0
pefo 28 years ago
parent
commit
553f9ef6ba
1 changed files with 18 additions and 18 deletions
  1. +18
    -18
      src/etc/etc.arc/MAKEDEV

+ 18
- 18
src/etc/etc.arc/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.2 1996/08/09 00:25:01 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.3 1996/08/26 11:03:49 pefo Exp $
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
# #
@ -53,7 +53,7 @@ case $i in
all) all)
sh MAKEDEV std fd fd0 sd0 sd1 sd2 st0 cd0 tty0 tty1 pty0 pty1 sh MAKEDEV std fd fd0 sd0 sd1 sd2 st0 cd0 tty0 tty1 pty0 pty1
sh MAKEDEV ttyC0 lpt0 pms0 rnd local
sh MAKEDEV ttyC0 lpt0 pms0 rnd bpf0 local
;; ;;
std) std)
@ -161,24 +161,24 @@ fd*|sd*|vnd*)
rm -f $name$unit r$name$unit rm -f $name$unit r$name$unit
case $unit in case $unit in
0|1|2|3|4|5|6) 0|1|2|3|4|5|6)
mknod ${name}${unit}c b $blk `expr $unit '*' 8 + 2`
mknod r${name}${unit}c c $chr `expr $unit '*' 8 + 2`
mknod ${name}${unit}c b $blk `expr $unit '*' 16 + 2`
mknod r${name}${unit}c c $chr `expr $unit '*' 16 + 2`
if [ $name != vnd ] if [ $name != vnd ]
then then
mknod ${name}${unit}a b $blk `expr $unit '*' 8 + 0`
mknod ${name}${unit}b b $blk `expr $unit '*' 8 + 1`
mknod ${name}${unit}d b $blk `expr $unit '*' 8 + 3`
mknod ${name}${unit}e b $blk `expr $unit '*' 8 + 4`
mknod ${name}${unit}f b $blk `expr $unit '*' 8 + 5`
mknod ${name}${unit}g b $blk `expr $unit '*' 8 + 6`
mknod ${name}${unit}h b $blk `expr $unit '*' 8 + 7`
mknod r${name}${unit}a c $chr `expr $unit '*' 8 + 0`
mknod r${name}${unit}b c $chr `expr $unit '*' 8 + 1`
mknod r${name}${unit}d c $chr `expr $unit '*' 8 + 3`
mknod r${name}${unit}e c $chr `expr $unit '*' 8 + 4`
mknod r${name}${unit}f c $chr `expr $unit '*' 8 + 5`
mknod r${name}${unit}g c $chr `expr $unit '*' 8 + 6`
mknod r${name}${unit}h c $chr `expr $unit '*' 8 + 7`
mknod ${name}${unit}a b $blk `expr $unit '*' 16 + 0`
mknod ${name}${unit}b b $blk `expr $unit '*' 16 + 1`
mknod ${name}${unit}d b $blk `expr $unit '*' 16 + 3`
mknod ${name}${unit}e b $blk `expr $unit '*' 16 + 4`
mknod ${name}${unit}f b $blk `expr $unit '*' 16 + 5`
mknod ${name}${unit}g b $blk `expr $unit '*' 16 + 6`
mknod ${name}${unit}h b $blk `expr $unit '*' 16 + 7`
mknod r${name}${unit}a c $chr `expr $unit '*' 16 + 0`
mknod r${name}${unit}b c $chr `expr $unit '*' 16 + 1`
mknod r${name}${unit}d c $chr `expr $unit '*' 16 + 3`
mknod r${name}${unit}e c $chr `expr $unit '*' 16 + 4`
mknod r${name}${unit}f c $chr `expr $unit '*' 16 + 5`
mknod r${name}${unit}g c $chr `expr $unit '*' 16 + 6`
mknod r${name}${unit}h c $chr `expr $unit '*' 16 + 7`
fi fi
chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h] chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h] chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h]


Loading…
Cancel
Save