#!/bin/sh
#############################################################################
# Copyright 2005, Sun Microsystems Inc. All rights reserved.
# Use is subject to license terms.
#
# Name: disable
# Description: disable script for SUNWupdatemgru pkg. This script is required
# of any package which conforms to the Client Framework and is a cron-based
# agent.
#############################################################################

#############################################################################
#  Function of the disable script 
#  1. Call the CNS Framework Services to clean up after disabling our service
#############################################################################

CNS_SWUP_SERVICE_NAME=swupPortalMgmt
CNS_SWUP_COMPONENT_NM=swupagent
COMMAND=swupas
USER="root"
FW_DESTROY_CRONTAB="$PKG_INSTALL_ROOT/usr/lib/cc-cfw/framework/lib/destroy_crontab_entry"

if [ -f  $FW_DESTROY_CRONTAB ] ; then
    # Invoking the destroy entry function with the CNS Framework executable script
    $FW_DESTROY_CRONTAB  $USER $COMMAND $CNS_SWUP_SERVICE_NAME $CNS_SWUP_COMPONENT_NM
fi

exit 0

