#!/sbin/sh
########
#  Product: AdvJournalFS
#  Fileset: VXFS-ADV-KRN
#  postinstall
#  @(#) $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

########################################################
# Only modify the system file on the root file system. #
# If this is an NFSdiskless installation, or alternate #
# root, then configure will handle it.                 #
########################################################

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


     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
