#!/bin/sh
#
# Copyright 04/14/98 Sun Microsystems, Inc.  All rights reserved.
#
# # @(#)prebackout	1.3 99/01/21 Sun Microsystems, Inc.
#

#
# If the MIS is installed on this machine, then stop it before backing out
# the patch.
#

PATH=/usr/bin:/bin

if pkginfo -q SUNWemmis; then
    installdir=`pkgparam SUNWemmis BASEDIR`

    #
    # Shut down the MIS, related daemons, and processes.
    #

    $installdir/SUNWconn/em/bin/em_services -force -stop

fi

exit 0
