#
#       Copyright (c) 1999 Sun Microsystems, Inc.
#               All Rights Reserved
#
# @(#)checkinstall	1.1 00/03/17 Sun 


# if SunScreen already installed, stop: not upgradeable
pkginfo -R ${PKG_INSTALL_ROOT:-/} -q ${PKG}\*
if [ $? -eq 0 ] ; then   # it's an upgrade
	echo "### SunScreen: ${PKG} package already installed.  Cannot install two instances of SunScreen."
	echo "### Please check for the existing SunScreen installation, and remove"
	echo "### it or upgrade it as appropriate."
	exit 3
fi

echo "## Done ##"
