ra80 disktab bugs; bug report 4.2BSD/etc/110
[unix-history] / usr / src / etc / etc.vax / MAKEDEV
index 47c7ca4..98475ac 100644 (file)
@@ -4,7 +4,7 @@
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)MAKEDEV     4.25 (Berkeley) %G%
+#      @(#)MAKEDEV     4.28 (Berkeley) %G%
 #
 # Device "make" file.  Valid arguments:
 #      std     standard devices
 #
 # Device "make" file.  Valid arguments:
 #      std     standard devices
@@ -56,7 +56,7 @@ std)
        /etc/mknod crl          c 35 0
        /etc/mknod tu0          b 8 0
        /etc/mknod tu1          b 8 1
        /etc/mknod crl          c 35 0
        /etc/mknod tu0          b 8 0
        /etc/mknod tu1          b 8 1
-       /etc/mknod kUmem        c 3 3   ; chmod 600 kUmem ; :untested
+       /etc/mknod kUmem        c 3 3   ; chmod 600 kUmem ;untested
        /etc/mknod kmem         c 3 1   ; chmod 640 kmem ; chgrp kmem kmem
        /etc/mknod mem          c 3 0   ; chmod 640 mem ; chgrp kmem mem
        /etc/mknod null         c 3 2   ; chmod 666 null
        /etc/mknod kmem         c 3 1   ; chmod 640 kmem ; chgrp kmem kmem
        /etc/mknod mem          c 3 0   ; chmod 640 mem ; chgrp kmem mem
        /etc/mknod null         c 3 2   ; chmod 666 null
@@ -64,7 +64,7 @@ std)
        /etc/mknod klog         c 33 0  ; chmod 600 klog
        ;;
 
        /etc/mknod klog         c 33 0  ; chmod 600 klog
        ;;
 
-ht*|tm*|ts*|mt*|ut*)
+ht*|tm*|ts*|ut*)
        umask 0 ; unit=`expr $i : '..\(.*\)'`
        case $i in
        ht*) blk=1; chr=5 ;;
        umask 0 ; unit=`expr $i : '..\(.*\)'`
        case $i in
        ht*) blk=1; chr=5 ;;
@@ -102,6 +102,37 @@ ht*|tm*|ts*|mt*|ut*)
        umask 77
        ;;
 
        umask 77
        ;;
 
+mt*)
+       umask 0 ; unit=`expr $i : '..\(.*\)'`
+       case $i in
+       mt*) blk=7; chr=19;;
+       esac
+       case $unit in
+       0|1|2|3|4|5|6|7)
+               eight=`expr $unit + 0`;
+               twelve=`expr $unit + 4`; 
+               sixteen=`expr $unit + 8`;
+               twenty=`expr $unit + 12`;
+               /etc/mknod mt8          b $blk $eight
+               /etc/mknod mt12         b $blk $twelve
+               /etc/mknod mt16         b $blk $sixteen
+               /etc/mknod mt20         b $blk $twenty
+               /etc/mknod nmt8         b $blk $twelve ;: ditto
+               /etc/mknod nrmt8        c $chr $twelve ;: ditto
+               /etc/mknod rmt8         c $chr $eight
+               /etc/mknod rmt12        c $chr $twelve
+               /etc/mknod rmt16        c $chr $sixteen
+               /etc/mknod rmt20        c $chr $twenty
+               /etc/mknod nmt16        b $blk $twenty ;: ditto
+               /etc/mknod nrmt16       c $blk $twenty ;: ditto
+               ;;
+       *)
+               echo bad unit for tape in: $1
+               ;;
+       esac
+       umask 77
+       ;;
+
 hp*|hk*|up*|ra*|rl*|rb*)
        umask 2 ; unit=`expr $i : '..\(.*\)'`
        case $i in
 hp*|hk*|up*|ra*|rl*|rb*)
        umask 2 ; unit=`expr $i : '..\(.*\)'`
        case $i in
@@ -254,10 +285,12 @@ pty*)
        1) offset=16 name=q;;
        2) offset=32 name=r;;
        3) offset=48 name=s;;
        1) offset=16 name=q;;
        2) offset=32 name=r;;
        3) offset=48 name=s;;
+       4) offset=64 name=t;;
+       5) offset=80 name=u;;
        *) echo bad unit for pty in: $i;;
        esac
        case $class in
        *) echo bad unit for pty in: $i;;
        esac
        case $class in
-       0|1|2|3)
+       0|1|2|3|4|5)
                umask 0
                eval `echo $offset $name | awk ' { b=$1; n=$2 } END {
                        for (i = 0; i < 16; i++)
                umask 0
                eval `echo $offset $name | awk ' { b=$1; n=$2 } END {
                        for (i = 0; i < 16; i++)