#!/bin/sh
#ident "@(#)preremove	1.2 01/06/04 SMI"
#
#  Copyright (c) 2003 Sun Microsystems, Inc. All rights reserved.
# *
# * U.S. Government Rights - Commercial software. Government users are subject
# * to the Sun Microsystems, Inc. standard license agreement and applicable
# * provisions of the FAR and its supplements.
#
# Use is subject to license terms.
#
# This distribution may include materials developed by third parties. Sun,
# Sun Microsystems, the Sun logo and Solaris are trademarks or registered
#  trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
#
#

RM=/usr/bin/rm

#
# some configuration files are created after the product
# is installed. It is best we remove them if they are
# removing the product 
#

if [ -f ${PKG_INSTALL_ROOT}/etc/sma/snmp/mibs/.index ]; then
	$RM ${PKG_INSTALL_ROOT}/etc/sma/snmp/mibs/.index;
fi


if [ -f ${PKG_INSTALL_ROOT}/etc/sma/snmp/snmptrapd.conf ]; then
        $RM ${PKG_INSTALL_ROOT}/etc/sma/snmp/snmptrapd.conf;
fi

if [ -f ${PKG_INSTALL_ROOT}/etc/sma/snmp/snmp.conf ]; then
        $RM ${PKG_INSTALL_ROOT}/etc/sma/snmp/snmp.conf;
fi


if [ -f ${PKG_INSTALL_ROOT}/var/sma_snmp/snmpd.conf ]; then   
        $RM ${PKG_INSTALL_ROOT}/var/sma_snmp/snmpd.conf;
fi


if [ -f ${PKG_INSTALL_ROOT}/var/sma_snmp/snmp.conf ]; then   
        $RM ${PKG_INSTALL_ROOT}/var/sma_snmp/snmp.conf;
fi


if [ -f ${PKG_INSTALL_ROOT}/var/sma_snmp/snmptrapd.conf ]; then   
        $RM ${PKG_INSTALL_ROOT}/var/sma_snmp/snmptrapd.conf;
fi

if [ -f ${PKG_INSTALL_ROOT}/var/log/snmpd.log ]; then   
        $RM ${PKG_INSTALL_ROOT}/var/log/snmpd.log;
fi

	
exit 0
