*!/sbin/sh
mk_number() { set +e; N='expr $1/10' ; N='expr $N \* 8 + $1 % 10' ; \ echo $N ; set -e : }
unask 077; /sbin/hinv | \
sed -n -e '/"Intearal SCSI controller /'p -e '/'GIO SCSI controller /'p \ -e '/*PCI SCSI controller /'p | \ sed 's/://g' | \ while read a b c ctlr d ; do nunber='mk_number $ctlr'
for targ In 1 2 34567 89 10 Ii 12 13 14 15; do for i in 0 1 H=IH 6 7 15; do
minor='expr $i + Stara \* 16 + Snumber \* 256'; mknod dsk/dks${ctlr}d»{targ)sSi b S{B_0KS} Sminor & mknod rdsk/dks${ctlr}dS{targ}s$i c S{C_DKS} Sminor & done;
minor='expr 8 ♦ Starg \« 16 + Snumber \» 256'; mknod rdsk/dks${ctlr}d${targ)vh c ${C_0KS} Sminor & minor='expr 10 ♦ Starg \* 16 ♦ Snunber \* 256'; mknod rdsk/dks${ctlr}d${targ}vol c S{C_DKS} Sminor & wa1t; done;
done
escher 56# []_