#!/sbin/sh
########
#  Product: JournalFS
#  Fileset: VXFS-BASE-KRN
#  unconfigure
#  @(#) $Revision: 1.3.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

########################################################
#                                                      #
# Undo what configure and postinstall script did for   #
# system file.                                         #
#                                                      #
########################################################


    ###################################################
    #                                                 #
    # Remove AdvJournalFS drivers from /stand/system  #
    #                                                 #
    ###################################################

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


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

exit $exitval
