#!/sbin/sh
########
#  Product: JournalFS
#  Fileset: VXFS-BASE-KRN
#  unconfigure
#  @(#) $Revision: 1.2.98.1 $
########
#
# (c) Copyright Hewlett-Packard Company, 1993
#
########

SUCCESS=0                       # SDU expected return codes
WARNING=2
FAILURE=1

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 JournalFS drivers from /stand/system   #
    #                                               #
    #################################################

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


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

exit $exitval
