#! /sbin/sh
########
# Product: Ignite-UX
# Fileset: RECOVERY
# preremove
# @(#) $Revision: 10.2 $
########
#
# (c) Copyright Hewlett-Packard Company 1999
#
########################################################################

##########################################################################
# Remove the recovery depot if it was created on an IUX server.
# 
#
UTILS=/usr/lbin/sw/control_utils
if [ -f $UTILS ]
then
    . $UTILS
else
    echo "ERROR:   Cannot find $UTILS"
    exit 1
fi

REC_DEPOT=/var/opt/ignite/depots/recovery_cmds

if [ -d $REC_DEPOT ]
then
    echo "NOTE:    Removing the depot: $REC_DEPOT"
    swreg -l depot -u $REC_DEPOT
    rm -rf $REC_DEPOT
fi

exit 0
