#! /sbin/sh

# $Source: /usr/local/kcs/sys.DAVIS_800/filesets.info/AdvJournalFS/VXFS-ADV-KRN/RCS/checkremove,v $
# $Revision: 1.2.98.2 $	$Author: bracken $
# $State: Exp $   	$Locker:  $
# $Date: 96/02/06 19:12:05 $

########
#  Product: AdvJournalFS
#  Fileset: VXFS-ADV-KRN
# checkremove
# @(#) $Revision: 1.2.98.2 $
#########
#
# (c) Copyright Hewlett-Packard Company, 1993
#
#########

# The global variables SUCCESS, FAILURE, WARNING, EXCLUDE, PATH, ROOT,
# SW_CTL_SCRIPT_NAME, _pf, PRODUCT, and FILESET are all set by control_utils.

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

. $UTILS

if [[ $SW_SESSION_IS_KERNEL != "TRUE" ]]; then
    print "WARNING: Removal of the $FILESET fileset will make it impossible"
    print "         to build a new kernel.  This precludes changing certain"
    print "         system parameters and installing products that modify or"
    print "         add to the kernel."
    exit $WARNING
fi
