#!/bin/ksh -p
#
# ident "@(#)utsrwccfgctl.ksh	1.2 12/10/04 Oracle"
#
# Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved.
#

set -u
########################################################################
#
# Calls SRWC's uttscadm to refresh configuration
#
########################################################################

PATH=/usr/bin:/bin:/usr/sbin:/sbin
export PATH

########################################################################
#
# Operation entry points, one for each keyword.  This is where the
# specific work for this feature happens.
#
########################################################################


#
# disable()
#
disable() {
    :
}

#
# enable()
#
enable() {
    # This is esp. for a "SRWC patch-only" upgrade.
    # During a preserve-upgrade, this file will not be present
    if [ -f /opt/SUNWuttsc/lib/uttscadm  ]; then
	/opt/SUNWuttsc/lib/uttscadm -r	
    fi
}


#########################################
# LOCAL VARIABLES
# They must defined here to resolve the some of parameter resolution
# problem
#########################################
local_variables() {
	:
}


#########################################
#
# Configurable parameter
#
#########################################
# NONE

#########################################
#
# variables used in the shared script utctl-shlib
#
#########################################

DESCR="Re-configures SRWC after patch if previously configured"

########################################################################
#
# Execution starts here
#

PROGPATH=`dirname $0`
. $PROGPATH/utctl-shlib
