#!/sbin/sh
####################################
# Product: ixPython
# Fileset: Latest
# checkinstall
# (c) Copyright Hewlett-Packard Company
####################################
UTILS="/usr/lbin/sw/control_utils"
    if [[ ! -f $UTILS ]]
    then
        echo "ERROR: Cannot find $UTILS"
        exit 1
    fi
    . $UTILS
exitval=$SUCCESS
####################################
#  Check if we are real root.  The guidelines say we will always be
#  real root during install, but don't mention anything about SWCONFIG.
#  We'll check just to be on the safe side.
####################################
if [[ $SW_ROOT_DIRECTORY != "/" ]]
then
        echo "ERROR:   ixPython can NOT be configured from an alternate"
        echo "         root environment!"
        exit 1
fi
####################################
# Kill python if running
####################################
kill_named_procs python 
####################################
exit $exitval
####################################
