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

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

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

BASEDIR="`pkginfo -r SUNWutesa`"

set -u

# 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/SUNWut

rm -f $ETCOPTDIR/utsservices.cfg

exit 0
