#!/bin/sh
#############################################################################
# 
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Name: start
# Description: 
#    This script is executed by the CNS Framework Services after Swup service 
#    is enabled. The swup agent is required to register with swup service prior
#    to swup server attempting to send down any tasks otherwise an error will
#    occur at the server. Swup agent registers the first time it is run. This
#    will ensure that it registers promptly after a user has turned on swup
#    service.
#
##############################################################################

# the -debug switch forces swupas to checkin with the proxy no matter
# what the elapsed time since a checkin was done since we don't want
# to wait when swup services are enabled (which is the only time this
# particular script is called)
(/usr/bin/sleep 300; /usr/lib/patch/swupas -debug > /dev/null 2>&1) &

exit 0

