#!/bin/sh
################################################################
#       Copyright (C) 1995 Interphase Corporation
#
#       Project:        4811 EFDDI HP-UX Driver
#       File:		krn-unconfig
#
#       $Author: dhollist $
#       $Date: 1995/04/07 21:16:26 $                           
#       $Source: /proj7/efddi/drivers/seahawk/hpux/hpux.10.0/dhollist/inst_scripts/RCS/krn-unconfig,v $             
#       $Revision: 1.1 $            
#       $Locker: dhollist $
#
################################################################

{
PATH=/bin:/usr/sbin
AFILE=/usr/conf/lib/libusrdrv.a

OSTYPE=`uname -m`
case "$OSTYPE" in

    9000/7* | 9000/8*)

# Remove our object file from the libusrdrv archive
    ar -d ${AFILE} seah.o >/dev/null 2>&1

# If we were the only file in the archive, delete the archive.
    FILES=`ar -t ${AFILE}`
    if [ -z "${FILES}" ]
    then
	rm -f ${AFILE}
    fi

    echo "The Seahawk driver has been unconfigured."
    echo ""
    echo "If you have not already removed the driver from the system via SAM,"
    echo "and you wish to do so, you will need to remove the 'seah' line from"
    echo "the /stand/system file, and rebuild the kernel manually."
    ;;

    *)	echo "Model $OSTYPE not supported at this time"
        exit1
        ;;

esac
exit 0
}
