preinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright %G% Sun Microsystems, Inc. All Rights Reserved.
#pragma ident "%Z%%M% %I% %E% SMI"
# SUNWsacom preinstall
rc=0 # Set return code to success.
if [ -d $BASEDIR/var/opt/SUNWconn/SSA/dmi/db ] ; then
if [ -d $BASEDIR/var/opt/SUNWconn/SSA/dmi/db.old ] ; then
echo "Removing $BASEDIR/var/opt/SUNWconn/SSA/dmi/db.old"
rc=$?
fi
echo "Renaming $BASEDIR/var/opt/SUNWconn/SSA/dmi.db to db.old"
rc=$?
fi
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.rsrc ] ; then
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.rsrc.old ] ; then
echo "Removing $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.rsrc.old"
rc=$?
fi
echo "Renaming $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf.snmpdx.rsrc to snmpdx.rsrc.old"
mv $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.rsrc $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.rsrc.old
rc=$?
fi
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.reg ] ; then
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.reg.old ] ; then
echo "Removing $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.reg.old"
rc=$?
fi
echo "Renaming $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf.snmpdx.reg to snmpdx.reg.old"
mv $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.reg $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.reg.old
rc=$?
fi
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.acl ] ; then
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.acl.old ] ; then
echo "Removing $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.acl.old"
rc=$?
fi
echo "Renaming $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf.snmpdx.acl to snmpdx.acl.old"
mv $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.acl $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpdx.acl.old
rc=$?
fi
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpd.conf ] ; then
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpd.conf.old ] ; then
echo "Removing $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpd.conf.old"
rc=$?
fi
echo "Renaming $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf.snmpd.conf to snmpd.conf.old"
mv $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpd.conf $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpd.conf.old
rc=$?
fi
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpd.reg ] ; then
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpd.reg.old ] ; then
echo "Removing $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpd.reg.old"
rc=$?
fi
echo "Renaming $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf.snmpd.reg to snmpd.reg.old"
mv $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpd.reg $BASEDIR/etc/opt/SUNWconn/SSA/snmp/conf/snmpd.reg.old
rc=$?
fi
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf/snmpXdmid.conf ] ; then
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf/snmpXdmid.conf.old ] ; then
echo "Removing $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf/snmpXdmid.conf.old"
rc=$?
fi
echo "Renaming $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf.snmpXdmid.conf to snmpXdmid.conf.old"
mv $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf/snmpXdmid.conf $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf/snmpXdmid.conf.old
rc=$?
fi
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf/dmispd.conf ] ; then
if [ -f $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf/dmispd.conf.old ] ; then
echo "Removing $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf/dmispd.conf.old"
rc=$?
fi
echo "Renaming $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf.dmispd.conf to dmispd.conf.old"
mv $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf/dmispd.conf $BASEDIR/etc/opt/SUNWconn/SSA/dmi/conf/dmispd.conf.old
rc=$?
fi
exit $rc