#
# ident "@(#)postinstall.src	1.3 04/03/13 SMI"
#
# Copyright 2000-2002,2004 Sun Microsystems, Inc.  All rights reserved.
#

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

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

set -u

BASEDIR="`pkginfo -r SUNWutesa`"

# Copy the services table if it doesn't exist
#
if [ -d /etc/opt/SUNWut ]; then
  cp $PKG_INSTALL_ROOT$BASEDIR/SUNWut/etc/template/utsservices.cfg \
    /etc/opt/SUNWut/utsservices.cfg
fi

# Add the SunMC agent links to the files just installed if SunMC is installed
#
${PKG_INSTALL_ROOT}$BASEDIR/SUNWut/lib/utsunmcagent -f

exit 0
