#!/sbin/sh
########
#  Product: AdvJournalFS
#  Fileset: VXFS-ADV-KRN
#  configure
#  @(#) $Revision: 1.4.98.1 $
########
#
# (c) Copyright Hewlett-Packard Company, 1993
#
########

exitval=0                     # Anticipate success

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


SYSTEM=$SW_SYSTEM_FILE_PATH

########################################################
#                                                      #
# If configuring a diskless client, or a disk that had #
# been mounted as an alternate root during swinstall,  #
# perform all necessary  kernel modifications.         #
#                                                      #
########################################################

if [[ -n "${SW_DEFERRED_KERNBLD}" ]]
then



    ####################################################
    #                                                  #
    # Place AdvJournalFS drivers into /stand/system    #
    #                                                  #
    ####################################################

    mod_systemfile $SYSTEM -a vxadv
    if [[ $? -ne 0 ]]
    then
	print "ERROR:   Cannot update $SYSTEM to"
	print "         include vxadv ($FILESET functionality)."
	exitval=$FAILURE
    fi


fi      # end of "if [[ -z ${SW_DEFERRED_KERNBLD}" ]]

#############
# Finished. #
#############

exit $exitval
