Add cg*, st*

This commit is contained in:
gwr 1995-07-07 15:46:44 +00:00
parent d6a890806a
commit d1979fbe53

View File

@ -32,7 +32,7 @@
# SUCH DAMAGE. # SUCH DAMAGE.
# #
# @(#)MAKEDEV 5.5 (Berkeley) 5/28/91 # @(#)MAKEDEV 5.5 (Berkeley) 5/28/91
# $Id: MAKEDEV,v 1.2 1995/01/26 23:28:11 gwr Exp $ # $Id: MAKEDEV,v 1.3 1995/07/07 15:46:44 gwr Exp $
# #
# Device "make" file. Valid arguments: # Device "make" file. Valid arguments:
# std standard devices # std standard devices
@ -49,8 +49,8 @@
# Call units: # Call units:
# Special purpose devices: # Special purpose devices:
# bwtwo* # bwtwo*
# cgthree* # cgtwo*
# cgsix* # cgfour*
# bpf* packet filter # bpf* packet filter
# lkm loadable kernel modules interface # lkm loadable kernel modules interface
# tun* network tunnel driver # tun* network tunnel driver
@ -79,7 +79,7 @@ unit=`expr $arg : '[a-z][a-z]*\([0-9][0-9]*\)'`
case $arg in case $arg in
all) all)
sh MAKEDEV std sd0 sd1 pty0 sh MAKEDEV std sd0 sd1 sd2 sd3 st0 st1 pty0
;; ;;
std) std)
@ -115,6 +115,10 @@ bpf*)
mk bpf$unit c 36 $unit 600 mk bpf$unit c 36 $unit 600
;; ;;
tun*)
mk tun$unit c 24 $unit 600
;;
pty*) pty*)
case $unit in case $unit in
0) offset=0 name=p;; 0) offset=0 name=p;;
@ -139,11 +143,12 @@ pty*)
done done
;; ;;
sd*|xy*|vnd*) cd*|sd*|xy*|vnd*)
case $arg in case $arg in
cd*) name=cd; blk=18; chr=58;;
sd*) name=sd; blk=7; chr=17;; sd*) name=sd; blk=7; chr=17;;
xy*) name=xy; blk=3; chr=9 ;; xy*) name=xy; blk=3; chr=9 ;;
vnd*) name=vnd; blk=5; chr=19; vnd*) name=vnd; blk=5; chr=19;;
esac esac
case $unit in case $unit in
0|1|2|3|4) offset=`expr $unit \* 8`;; 0|1|2|3|4) offset=`expr $unit \* 8`;;
@ -162,6 +167,30 @@ sd*|xy*|vnd*)
done done
;; ;;
st*)
name=st; blk=11; chr=18;
case $unit in
0|1|2|3) offset=`expr $unit \* 16`;;
*) echo bad unit for $name in: $arg;;
esac
mk r$name$unit c $chr `expr $offset + 0`
mk nr$name$unit c $chr `expr $offset + 1`
mk er$name$unit c $chr `expr $offset + 2`
mk enr$name$unit c $chr `expr $offset + 3`
;;
bwtwo*)
mk bwtwo$unit c 27 $unit
;;
cgtwo*)
mk cgtwo$unit c 31 $unit
;;
cgfour*)
mk cgfour$unit c 39 $unit
;;
local) local)
umask 0 umask 0
sh MAKEDEV.local sh MAKEDEV.local