#
# @(#) prepatch 1.0 94/08/04 SMI
#

REQ_PATCHID="101318-31"


check_if_applied()
{
        if showrev -p | grep -s "^Patch:[         ]*$1" > /dev/null 2>&1 ; then
		exit 0
	else
		/usr/bin/echo "Patch $1 must be installed for this patch to work.  Please install patch $1 from the Solaris 2.3 Maintenance Supplement 1."
		rm -f /tmp/*.$$
		exit 2
        fi
}

check_if_applied $REQ_PATCHID
