Browse Source

Build SCSI tape eject devices. Spotted while testing beckish slag?

OPENBSD_2_9
hugh 23 years ago
parent
commit
301e815e2d
1 changed files with 31 additions and 3 deletions
  1. +31
    -3
      src/etc/etc.vax/MAKEDEV

+ 31
- 3
src/etc/etc.vax/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.25 2000/12/05 07:27:36 hugh Exp $
# $OpenBSD: MAKEDEV,v 1.26 2001/03/31 02:51:26 hugh Exp $
# $NetBSD: MAKEDEV,v 1.30 2000/01/21 12:28:29 tsutsui Exp $ # $NetBSD: MAKEDEV,v 1.30 2000/01/21 12:28:29 tsutsui Exp $
# #
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
@ -135,14 +135,13 @@ fd)
chmod 666 fd/* chmod 666 fd/*
;; ;;
ht*|tm*|mt*|ts*|ut*|st*)
ht*|tm*|mt*|ts*|ut*)
case $i in case $i in
ht*) name=ht; unit=${i#ht}; blk=1; chr=5 ;; ht*) name=ht; unit=${i#ht}; blk=1; chr=5 ;;
mt*) name=mt; unit=${i#mt}; blk=15; chr=38;; mt*) name=mt; unit=${i#mt}; blk=15; chr=38;;
tm*) name=tm; unit=${i#tm}; blk=5; chr=14;; tm*) name=tm; unit=${i#tm}; blk=5; chr=14;;
ts*) name=ts; unit=${i#ts}; blk=6; chr=16;; ts*) name=ts; unit=${i#ts}; blk=6; chr=16;;
ut*) name=ut; unit=${i#ut}; blk=10; chr=17;; ut*) name=ut; unit=${i#ut}; blk=10; chr=17;;
st*) name=st; unit=${i#st}; blk=21; chr=60;;
esac esac
case $unit in case $unit in
[0-7]) [0-7])
@ -201,6 +200,35 @@ ht*|tm*|mt*|ts*|ut*|st*)
umask 77 umask 77
;; ;;
st*)
umask 2
unit=${i#st}; blk=21; chr=60;
case $unit in
0|1|2|3|4|5|6|7)
rm -f st${unit} nst${unit} est${unit} enst${unit} \
rst${unit} nrst${unit} erst${unit} enrst${unit}
mknod st${unit} b $blk $(($unit * 16 + 0))
mknod nst${unit} b $blk $(($unit * 16 + 1))
mknod est${unit} b $blk $(($unit * 16 + 2))
mknod enst${unit} b $blk $(($unit * 16 + 3))
mknod rst${unit} c $chr $(($unit * 16 + 0))
mknod nrst${unit} c $chr $(($unit * 16 + 1))
mknod erst${unit} c $chr $(($unit * 16 + 2))
mknod enrst${unit} c $chr $(($unit * 16 + 3))
chown root.operator \
st${unit} nst${unit} est${unit} enst${unit} \
rst${unit} nrst${unit} erst${unit} enrst${unit}
chmod 660 \
st${unit} nst${unit} est${unit} enst${unit} \
rst${unit} nrst${unit} erst${unit} enrst${unit}
;;
*)
echo bad tape unit: $i - $unit
;;
esac
umask 77
;;
mt*) mt*)
umask 0 ; unit=`expr $i : '..\(.*\)'` umask 0 ; unit=`expr $i : '..\(.*\)'`
case $i in case $i in


Loading…
Cancel
Save