#!/sbin/sh
#############################################################################
#  Product: HSCFibreCh
#  Fileset: FCHSC-KRN
#  postinstall
#  @(#) $Revision: 1.1.98.2 $
#############################################################################
# (c) Copyright Hewlett-Packard Company, 1995
#############################################################################

####### add our entry to the kernel config file only if server or standalone
if [ -n "$SW_DEFERRED_KERNBLD" ] ; then
	# we are on a client; the configure script will update kernel config
	exit 0
fi


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

fi
. $UTILS

####### For now, do something only if this is a Series 800 machine

ARCHITECTURE=`get_arch`
if [ $ARCHITECTURE -ne "800" ]; then
    exit $SUCCESS
fi



####### add our entry to the kernel config file
EXITVAL=0
RES0=0
### mod_systemfile $SW_SYSTEM_FILE_PATH -a fceisa
### RES0=$?

####### see if the mod_systemfiles worked
### if [ $RES0 -ne 0 ] ; then
###	echo "ERROR:   Cannot modify the kernel configuration file.  The"
###	echo "         fcgsc_lan driver must be manually configured"
###	echo "         into the kernel."
###	EXITVAL=1
###fi

exit $EXITVAL

