#! /bin/sh
#
# Check the target system for the existance of PatchID# 102030-12. Only 
# revision -12 is involved. The patch, 102030-12, will not allow this rev
# of the KU to be installed if patch ID# 102030-12 is already installed.
# Then print a message stating that the patch needs to be 
# backed out before this new KU can be installed.
#
ROOTDIR=$2
PATCHID=102030
PATCHVER=12
INFO_DIR="$ROOTDIR/var/sadm/patch"
#
patmessage() {
        echo 
        echo "This revision of the KU patch may not be installed on this"
        echo "target system without first backing out Patch ID# 102030-12."
        echo "Exiting installation of this KU Patch ID# 101945-64"
        echo
}
#
if [ -d $INFO_DIR/$PATCHID-$PATCHVER ]
then
        patmessage
	exit 1
fi
#
# If we make it here the patch is not applied and we can return 
# to installpatch.
exit 0
