#
# ident "@(#)preremove.src	1.5 02/08/22 SMI"
#
# Copyright 2000-2002 Sun Microsystems, Inc.  All rights reserved.
#

BASEDIR=`/usr/bin/pkgparam SUNWutesa BASEDIR`

PATH=/bin:/usr/bin:/sbin:/usr/sbin

if [ -z "$PKG_INSTALL_ROOT" ]; then
  PKG_INSTALL_ROOT=""
fi

set -u

PKGID=SUNWut

#
# Remove the SunMC links to the files to be removed
#

${PKG_INSTALL_ROOT}${BASEDIR}/SUNWut/lib/utsunmcagent -u

#
# Clean up /etc/opt/
#

ETCOPTDIR=$PKG_INSTALL_ROOT/etc/opt/$PKGID

rm -f $ETCOPTDIR/utsservices.cfg

exit 0;
