#!/bin/sh

if [ 5.7 != `uname -r` ] ; then
   echo "This patch is for SunOS 2.7. Please install the correct patch"
   exit 1
fi 

PS="/usr/bin/ps"
GREP="/usr/bin/grep"
WC="/usr/bin/wc"
SUNMCPROC="esd - init"

procCount=`$PS -ef | $GREP "$SUNMCPROC" | $GREP -v grep | $WC -l`
if [ $procCount -gt 0 ]
then
         echo "Sun Management Center Processes are running."
         echo "Please stop them before applying this patch"
         exit 1
fi

