#!/bin/sh
#
# Copyright 03/13/03 Sun Microsystems, Inc.  All rights reserved.
#
# @(#)postpatch	1.23 03/03/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

# Command to unjar

if [ -f $installdir/SUNWconn/em/classes/emjdmk.jar ]
    then
    cd $installdir/SUNWconn/em/classes
    /usr/java/bin/jar xvf $installdir/SUNWconn/em/classes/emjdmk.jar
    chmod -R  a+r $installdir/SUNWconn/em/classes/com/sun/em/jdmk
    chown -R  root:sys $installdir/SUNWconn/em/classes/com/sun/em/jdmk
fi

exit 0
