#!/bin/bash

# Script to invoke runact on arguments passed in.  This script is intended for use
# by Code Update and will invoke runact.
#
#Usage: runactUPD [-h] -s "Selection_string" [-f Resource_data_input_file] 
#              [-l|-t|-d|-D Delimiter] [-x] [-T] [-V] Resource_class 
#              Action [In_Element_0=value In_Element_1=value ...]
#              [Rsp_Element...] 
#
#       runactUPD [-h] -r [-f Resource_data_input_file] 
#              [-l|-t|-d|-D Delimiter] [-x] [-T] [-V] Resource_handle 
#              Action [In_Element_0=value In_Element_1=value ...]
#              [Rsp_Element...]
#
#       runactUPD [-h] -c [-f Resource_data_input_file] [-n Node_name] 
#              [-l|-t|-d|-D Delimiter] [-x] [-T] [-V] Resource_class 
#              Action [In_Element_0=value In_Element_1=value ...]
#              [Rsp_Element...]
#
#       runactUPD [-h] -C Peer_domain_names [-f Resource_data_input_file] 
#              [-l|-t|-d|-D Delimiter] [-x] [-T] [-V] Resource_class 
#              Action [In_Element_0=value In_Element_1=value ...]
#              [Rsp_Element...]
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
# Module History:
# 00 08/03/2006  E. Leet     Initial release
# 01 09/26/2006  M. Antes    572107 - exit with return code from command
# 02 12/07/2006  M. Antes    581459 - Fix runact invocation 

actzTrace "ESA    T: -> runactUPD $*"

/usr/bin/runact -cxD " " IBM.LparCmd DLParCommand Cmd="activate_firmware" CmdDebugLevel="0" $*
cmdRC=$?

actzTrace 'ESA    T: <- runactUPD'

exit $cmdRC
