echo  
echo "     You must now enter the SCSI target ID of every GPIB-SCSI-A"
echo "	   that you have connected to your system. You must also configure"
echo "     each GPIB-SCSI-A box as gpib0, or gpib1, or gpib2, and so on."
echo "     For example, if you want to configure your GPIB-SCSI-A box at"
echo "     target ID 5 as gpib0, you must enter 5 when prompted for"
echo "     SCSI target ID, and enter 0 when prompted for GPIB bus number."
echo
echo "Enter SCSI target ID  - enter 0 if you are done"
while read SCSIID
do
if [ $SCSIID = 0 ]
then
   break
fi
echo "type=ddi_pseudo;name=ib;addr1="$SCSIID"	\M0" >> /etc/devlink.tab
echo 'name="ib" class="scsi"' >> /usr/kernel/drv/ib.conf
echo "	target=$SCSIID lun=0;" >> /usr/kernel/drv/ib.conf
echo "Enter the GPIB bus number n as in GPIBn corresponding to"
echo " this SCSI target ID" $SCSIID
read BUSNO
$NIC_IB_UTILS/minibconf $BUSNO $SCSIID 1
RES=$?
if [ $RES -ne 0 ]
then
	exit 3
fi
echo "Enter SCSI target ID - enter 0 if you are done"
done

BASEDIR=""; export BASEDIR
/usr/sbin/add_drv -m '* 0666 root sys' ib
STATUS=$?
if  [ $STATUS -eq 0 ]
then 
   exit 0
else
   exit 3 
fi
