#!/bin/sh
#
#       This script saves the original snmpd.conf so that
#	customizations made are not lost when the new snmpd.conf
#       is laid down by the patch. 
#

Date=`date +%m%d%y%M`
        if [ -f $ROOTDIR/etc/snmp/conf/snmpd.conf ]; then
                cp -p $ROOTDIR/etc/snmp/conf/snmpd.conf $ROOTDIR/etc/snmp/conf/snmpd.conf.$Date
	echo
	echo "    NOTICE: The following file is being replaced by this patch"
       	echo "  "
       	echo "          /etc/snmp/conf/snmpd.conf"
        echo "\n"
        echo "    A copy of it has been saved under the name:"
        echo "\n"
        echo "          /etc/snmp/conf/snmpd.conf.$Date"
        echo "\n"

        echo "    The saved file needs to be scrutinized for any customizations"
        echo "    that may have been made.  Please merge these modifications"
        echo "    into the new snmpd.conf that was delivered by this patch."
	echo
	fi
exit 0
