#
# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#pragma ident	"@(#)preremove	1.1	03/09/19 SMI"

#
# Make sure that pools are not enabled before removing this package.
#
if [ "${PKG_INSTALL_ROOT:-/}" = "/" ]; then
	if [ -x /usr/sbin/pooladm ]; then
		MSG=`/usr/sbin/pooladm 2>&1`
		if [ $? -ne 1 ]; then
			echo "ERROR: unable to remove package" \
				"while pools are enabled."
		        exit 1
		fi
	fi
fi
