#!/bin/sh
#
# Copyright 12/13/01 Sun Microsystems, Inc.  All rights reserved.
#
# @(#)postbackout	1.4 01/12/13 Sun Microsystems, Inc.
#

if /usr/bin/pkginfo -q SUNWemmis; then
    installdir=`/usr/bin/pkgparam SUNWemmis BASEDIR`
    
    if [ ! -r $installdir/SUNWconn/em/bin/emenv.sh ] ; then

	# Exiting with a non-zero value here will cause installpatch to 
	# back out the patch.

	echo "$installdir/SUNWconn/em/bin/emenv.sh file not found"
	exit 1
    fi

    . $installdir/SUNWconn/em/bin/emenv.sh

    $installdir/SUNWconn/em/bin/em_services -start

fi

exit 0
