#!/bin/sh
#* ----------------------------------------------------------------------
#*               Proprietary and Confidential Information
#*
#* This material contains, and is part of a computer software program
#* which is, proprietary and confidential information owned by CA, INC. 
#* The program, including this material, may not be duplicated, disclosed
#* or reproduced in whole or in part for any purpose without the express
#* written authorization of CA. All authorized reproductions must be
#* marked with this legend.
#*
#*                      Copyright (c) 2006  CA, Inc.
#*                          All rights reserved
#*
#* ----------------------------------------------------------------------
# legacy deinstall script - called by products which haven't issued via rpm
if [ -f /etc/catngcampath ]
then
    CURRENT_INSTALL=`cat /etc/catngcampath`
    if [ -x $CURRENT_INSTALL/bin/camclient ]
    then
        $CURRENT_INSTALL/bin/camclient -e 2>&1 > /dev/null
        # exit if there are still clients
        [ $? != 0 ] && exit 1
    fi
fi
rpm -e ca-cs-cam

