echo "Checking tape drive: $TAPE_DRV ..."
mt -f $TAPE_DRV rewind > /dev/null 2>&1
if [ $? = 0 ]
then
    echo "... is OK"
    go_code=0
else
    echo "... is not working - ABORTING BACKUP"
    go_code=1
    bstatus="was ABORTED - NO TAPE IN DRIVE"
fi
		     
if [ "${go_code}" = "0" ]
...................

