#!/sbin/sh
#############################################################################
#  Product: HSCFibreCh
#  Fileset: FCHSC-KRN
#  unconfigure
#  @(#) $Revision: 1.1.98.1 $
#############################################################################
# (c) Copyright Hewlett-Packard Company, 1994
#############################################################################

# setup environment 
UTILS="/usr/lbin/sw/control_utils"
if [ ! -f $UTILS ] ; then
	echo "ERROR:   Cannot find \"$UTILS\"."
	exit 1
fi
. $UTILS


# make sure the kernel config file exists
if [ ! -r "$SW_SYSTEM_FILE_PATH" ] ; then
	echo "ERROR:   Cannot find \"$SW_SYSTEM_FILE_PATH\"."
	exit 1
fi



####### remove our entry to the kernel config file
EXITVAL=0
RES0=0

mod_systemfile $SW_SYSTEM_FILE_PATH -d fcgsc_lan
RES0=$?
if [ $RES0 -ne 0 ] ; then
    echo "ERROR:   Cannot modify the kernel configuration file.  The"
    echo "         fcgsc driver must be manually deleted from "
    echo "         the sytem file /stand/system. "
    EXITVAL=1
fi

exit $EXITVAL

