# Device "make" file. Valid arguments:
# local configuration specific devices
# pty* set of 32 master and slave pseudo terminals
# Special purpose devices:
# enp* CMC Ethernet interface for loading RAM
# ik* IKON DR-11W w/ E&S PS300
/etc
/mknod drum c
8 0 ; chmod 640 drum
; chgrp kmem drum
/etc
/mknod mem c
3 0 ; chmod 640 mem
; chgrp kmem mem
/etc
/mknod kmem c
3 1 ; chmod 640 kmem
; chgrp kmem kmem
/etc
/mknod null c
3 2 ; chmod 666 null
/etc
/mknod vmem c
3 3 ; chmod 640 vmem
; chgrp kmem vmem
/etc
/mknod tty c
2 0 ; chmod 666 tty
/etc
/mknod klog c
15 0 ; chmod 400 klog
umask 0 ; unit
=`expr $i : '..\(.*\)'`
# twenty=`expr $unit + 20`
/etc
/mknod mt
$unit b
$blk $unit
/etc
/mknod mt
$four b
$blk $four
/etc
/mknod mt
$eight b
$blk $eight
/etc
/mknod mt
$twelve b
$blk $twelve
ln mt
$four nmt
$unit ;: sanity
ln mt
$twelve nmt
$eight ;: ditto
/etc
/mknod rmt
$unit c
$chr $unit
/etc
/mknod rmt
$four c
$chr $four
/etc
/mknod rmt
$eight c
$chr $eight
/etc
/mknod rmt
$twelve c
$chr $twelve
ln rmt
$four nrmt
$unit ;: sanity
ln rmt
$twelve nrmt
$eight ;: ditto
# /etc/mknod mt$twenty b $blk $twenty
# /etc/mknod rmt$twenty c $chr $twenty
echo bad unit
for tape
in: $1
unit
=`expr $i : '..\(.*\)'`
dk
*) name
=dk
; blk
=1; chr
=5;;
0|
1|
2|
3|
4|
5|
6|
7|
8|
9|a|b|c|d|e|f
)
/etc
/mknod
${name}${unit}a b
$blk `expr $u '*' 8 + 0`
/etc
/mknod
${name}${unit}b b
$blk `expr $u '*' 8 + 1`
/etc
/mknod
${name}${unit}c b
$blk `expr $u '*' 8 + 2`
/etc
/mknod
${name}${unit}d b
$blk `expr $u '*' 8 + 3`
/etc
/mknod
${name}${unit}e b
$blk `expr $u '*' 8 + 4`
/etc
/mknod
${name}${unit}f b
$blk `expr $u '*' 8 + 5`
/etc
/mknod r
${name}${unit}a c
$chr `expr $u '*' 8 + 0`
/etc
/mknod r
${name}${unit}b c
$chr `expr $u '*' 8 + 1`
/etc
/mknod r
${name}${unit}c c
$chr `expr $u '*' 8 + 2`
/etc
/mknod r
${name}${unit}d c
$chr `expr $u '*' 8 + 3`
/etc
/mknod r
${name}${unit}e c
$chr `expr $u '*' 8 + 4`
/etc
/mknod r
${name}${unit}f c
$chr `expr $u '*' 8 + 5`
chmod 644 ${name}${unit}[a-f
]
chmod 644 r
${name}${unit}[a-f
]
echo bad unit
for disk
in: $i
unit
=`expr $i : 'vx\(.*\)'`
0|
1|
2|
3|
4|
5|
6|
7|
8|
9|a|b|c|d|e|f
)
eval `echo $un | awk ' { u = $1 } END {
printf("/etc/mknod tty%02x c 1 %d; ",u*16+i,u*16+i); }'`
ls -1 tty?? |
grep [A-F
] |
while read x
; do
y
=`echo $x | tr [A-F] [a-f]`
echo bad unit
for vx
in: $i
class
=`expr $i : 'pty\(.*\)'`
*) echo bad unit
for pty
in: $i;;
eval `echo $offset $name | awk ' { b=$1; n=$2 } END {
printf("/etc/mknod tty%s%x c 9 %d; \
/etc/mknod pty%s%x c 10 %d; ", \
n, i, b+i, n, i, b+i); }'`
ls -1 tty?? |
grep [A-F
] |
while read x
; do
y
=`echo $x | tr [A-F] [a-f]`
ls -1 pty?? |
grep [A-F
] |
while read x
; do
y
=`echo $x | tr [A-F] [a-f]`
unit
=`expr $i : 'enp\(.*\)'`
/etc
/mknod enp
${unit}ram c
16 $unit; chmod 644 enp
${unit}ram
echo bad unit
for enp
in: $i
unit
=`expr $i : 'dr\(.*\)'`
/etc
/mknod dr
${unit} c
18 $unit; chmod 644 dr
${unit}
echo bad unit
for dr
in: $i
unit
=`expr $i : 'ik\(.*\)'`
/etc
/mknod ik
${unit} c
20 $unit; chmod 644 ik
${unit}
echo bad unit
for ik
in: $i