preremove revision 7c478bd95313f5f23a4c958a745db2134aa03244
1245N/A#
2362N/A# CDDL HEADER START
1245N/A#
1245N/A# The contents of this file are subject to the terms of the
1245N/A# Common Development and Distribution License, Version 1.0 only
1245N/A# (the "License"). You may not use this file except in compliance
2362N/A# with the License.
1245N/A#
2362N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1245N/A# or http://www.opensolaris.org/os/licensing.
1245N/A# See the License for the specific language governing permissions
1245N/A# and limitations under the License.
1245N/A#
1245N/A# When distributing Covered Code, include this CDDL HEADER in each
1245N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1245N/A# If applicable, add the following below this CDDL HEADER, with the
1245N/A# fields enclosed by brackets "[]" replaced with your own identifying
1245N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1245N/A#
1245N/A# CDDL HEADER END
2362N/A#
2362N/A#
2362N/A# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
1245N/A# Use is subject to license terms.
1245N/A#
1245N/A#pragma ident "%Z%%M% %I% %E% SMI"
1245N/A
1245N/A#
1245N/A# Make sure that pools are not enabled before removing this package.
1245N/A#
1245N/Aif [ "${PKG_INSTALL_ROOT:-/}" = "/" ]; then
1245N/A if [ -x /usr/sbin/pooladm ]; then
1245N/A MSG=`/usr/sbin/pooladm 2>&1`
1245N/A if [ $? -ne 1 ]; then
1245N/A echo "ERROR: unable to remove package" \
1245N/A "while pools are enabled."
1245N/A exit 1
1245N/A fi
1245N/A fi
1245N/Afi
1245N/A