Put in mt additions. Remove tms.

This commit is contained in:
ragge 1996-07-14 13:58:38 +00:00
parent c62727acea
commit 667d9ae775

View File

@ -1,5 +1,5 @@
#!/bin/sh - #!/bin/sh -
# $NetBSD: MAKEDEV,v 1.3 1996/01/07 16:53:15 ragge Exp $ # $NetBSD: MAKEDEV,v 1.4 1996/07/14 13:58:38 ragge Exp $
# #
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
# #
@ -10,17 +10,15 @@
# Tapes: # Tapes:
# ht* massbus tm03 & tu?? # ht* massbus tm03 & tu??
# tm* unibus tm11 & te10 emulations (e.g. Emulex tc-11) # tm* unibus tm11 & te10 emulations (e.g. Emulex tc-11)
# tms* unibus/qbus TMSCP (e.g. TU81, TK50) # mt* MSCP tapes (e.g. TU81, TK50)
# ts* unibus ts11 # ts* unibus ts11
# mt* massbus tu78
# ut* unibus tu45 emulations (e.g.si 9700) # ut* unibus tu45 emulations (e.g.si 9700)
# uu* tu58 cassettes on dl11 controller # uu* tu58 cassettes on dl11 controller
# Disks: # Disks:
# hp* massbus rm?? # hp* massbus rm??
# hk* unibus rk06 and rk07 # hk* unibus rk06 and rk07
# up* other unibus devices (e.g. on Emulex sc-21v controller) # up* other unibus devices (e.g. on Emulex sc-21v controller)
# ra* unibus uda50 w/ ra?? # ra* MSCP disks (ra??, rd??)
# kra* bi kdb50 w/ ra??
# rl* unibus rl02 # rl* unibus rl02
# rb* 730 idc w/ rb80 and/or rb02 # rb* 730 idc w/ rb80 and/or rb02
# rx* unibus rx211 floppy disk # rx* unibus rx211 floppy disk
@ -49,6 +47,8 @@
# qv* qvss (microvax) display # qv* qvss (microvax) display
# ttyv0 qvss (microvax) display reserved pty # ttyv0 qvss (microvax) display reserved pty
# lkm loadable kernel modules # lkm loadable kernel modules
# bpf* berkeley packet filter
# tun* network tunnel device
PATH=/sbin:/usr/sbin:/bin:/usr/bin PATH=/sbin:/usr/sbin:/bin:/usr/bin
umask 77 umask 77
for i for i
@ -89,11 +89,11 @@ std)
chmod 666 fd/* chmod 666 fd/*
;; ;;
ht*|tm*|tms*|ts*|ut*) ht*|tm*|mt*|ts*|ut*)
umask 0 ; unit=`expr $i : '[^0-9]*\(.*\)'` umask 0 ; unit=`expr $i : '[^0-9]*\(.*\)'`
case $i in case $i in
ht*) name=ht; blk=1; chr=5 ;; ht*) name=ht; blk=1; chr=5 ;;
tms*) name=tms; blk=15; chr=38;; mt*) name=mt; blk=15; chr=38;;
tm*) name=tm; blk=5; chr=14;; tm*) name=tm; blk=5; chr=14;;
ts*) name=ts; blk=6; chr=16;; ts*) name=ts; blk=6; chr=16;;
ut*) name=ut; blk=10; chr=17;; ut*) name=ut; blk=10; chr=17;;
@ -142,37 +142,6 @@ ht*|tm*|tms*|ts*|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`;
mknod mt8 b $blk $eight
mknod mt12 b $blk $twelve
mknod mt16 b $blk $sixteen
mknod mt20 b $blk $twenty
mknod nmt8 b $blk $twelve ;: ditto
mknod nrmt8 c $chr $twelve ;: ditto
mknod rmt8 c $chr $eight
mknod rmt12 c $chr $twelve
mknod rmt16 c $chr $sixteen
mknod rmt20 c $chr $twenty
mknod nmt16 b $blk $twenty ;: ditto
mknod nrmt16 c $chr $twenty ;: ditto
;;
*)
echo bad unit for tape in: $1
;;
esac
umask 77
;;
hp*|hk*|up*|ra*|kra*|rl*|rb*|ccd*|vnd*) hp*|hk*|up*|ra*|kra*|rl*|rb*|ccd*|vnd*)
umask 2 ; unit=`expr $i : '.*[^0-9]\([0-9]*\)'` umask 2 ; unit=`expr $i : '.*[^0-9]\([0-9]*\)'`
case $i in case $i in
@ -384,6 +353,22 @@ dn*|ik*|ps*|ad*|ct*)
esac esac
;; ;;
bpf*)
unit=`expr $i : '...\(.*\)'`
rm -f bpf$unit
mknod bpf$unit c 56 $unit
chmod 600 bpf$unit
chown root.wheel bpf$unit
;;
tun*)
unit=`expr $i : '...\(.*\)'`
rm -f tun$unit
mknod tun$unit c 57 $unit
chmod 600 tun$unit
chown root.wheel tun$unit
;;
lkm) lkm)
mknod lkm c 28 0 mknod lkm c 28 0
chown root.kmem lkm chown root.kmem lkm