#!/sbin/sh
####################################
#  Product: OpenSSL
#  Fileset: Latest
#  preinstall
#  (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
####################################
# Kill the prngd daemon
####################################
kill_named_procs prngd KILL 1>/dev/null 2>/dev/null

####################################
# Setup config files
####################################
newconfig_prep /opt/openssl/0.9.8/openssl.cnf
newconfig_prep /opt/openssl/0.9.7/openssl.cnf

#newconfig_prep /opt/openssl/fips/0.9.8/openssl.cnf
#newconfig_prep /opt/openssl/fips/0.9.7/openssl.cnf

####################################
exit $exitval
####################################

