#!/bin/sh
#
#ident "@(#)patch_postinstall	1.2 01/15/98 SMI"
#
# Copyright 01/15/98 Sun Microsystems, Inc. All Rights Reserved
#
#  Postinstall script for package: SUNWmhs1d
#
# Exit codes for installation scripts
e_ok=0
e_fatal=1      # stop installation on this exit
e_warning=2    # Installation will go on.
e_int=3        # Interrupted. Stop installation
e_reboot=10    # User must reboot after installation of all selected packages
e_rebootnow=20 # User must reboot right after installation of current package
               # To be added to one of the single-digit exit code above

AWK=/usr/bin/awk
ECHO=/usr/bin/echo
GREP=/usr/bin/grep
PS=/usr/bin/ps
WC=/usr/bin/wc

# Trap interrupt
trap `exit $e_int` 15

cp /opt/SUNWconn/mhs/sbin/tmp_x400logd.conf  /etc/opt/SUNWconn/osinet/osilogd.conf
chmod 755 /opt/SUNWconn/mhs/sbin/x400logd.conf
cp /opt/SUNWconn/mhs/sbin/x400logd.conf  /etc/opt/SUNWconn/osinet/osilogd.conf
rm /opt/SUNWconn/mhs/sbin/tmp_x400logd.conf

cp -f /opt/SUNWconn/mhs/lib/x400logd ${BASEDIR}/SUNWconn/lib/osilogd
cp -f /etc/opt/SUNWconn/osinet/osilogd.conf /etc/opt/SUNWconn/osinet/osilogd.conf.sav
echo "Previous etc/opt/SUNWconn/osinet/osilogd.conf is saved"
echo "under /etc/opt/SUNWconn/osinet/osilogd.conf.sav"
cp -f /opt/SUNWconn/mhs/lib/x400logd /usr/sbin/osilogd

