* Changed processing of messages file from ARRAY -> VAR (since ksh88 has max array size of 1023)
* Renamed $SEP to $LOG_SEP, added $MSG_SEP * Fix in --check--host routine: avoid duplicate calls to display_init() for HC that fail in execution * Fix for check_hpux_drd_status plugin * Other fixes
This commit is contained in:
@@ -117,11 +117,11 @@ else
|
||||
log "executing {${_DRD_BIN}} ..."
|
||||
# drd outputs on STDERR
|
||||
${_DRD_BIN} status >${HC_STDOUT_LOG} 2>&1
|
||||
_RC=$?
|
||||
# RC of drd is unreliable
|
||||
fi
|
||||
|
||||
# check drd status
|
||||
if (( _RC == 0 )) && (( $(grep -c -E -e ".*Displaying.*succeeded" ${HC_STDOUT_LOG} 2>/dev/null) > 0 ))
|
||||
if (( $(grep -c -E -e ".*Displaying.*succeeded" ${HC_STDOUT_LOG} 2>/dev/null) > 0 ))
|
||||
then
|
||||
# convert NOW to epoch (pass date values as unquoted parameters)
|
||||
#_NOW_EPOCH=$(data_date2epoch "$(date '+%Y')" "$(date '+%m')" "$(date '+%d')" "$(date '+%H')" "$(date '+%M')" "$(date '+%S')")
|
||||
@@ -242,7 +242,7 @@ then
|
||||
else
|
||||
_MSG="unable to run command: {${_DRD_BIN}}"
|
||||
log_hc "$0" 1 "${_MSG}"
|
||||
return 0
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
||||
@@ -107,9 +107,9 @@ then
|
||||
log_hc "$0" 1 "${_MSG}"
|
||||
fi
|
||||
else
|
||||
_MSG="unable to run command: {${_SWLLST_BIN}}"
|
||||
_MSG="unable to run command: {${_SWLIST_BIN}}"
|
||||
log_hc "$0" 1 "${_MSG}"
|
||||
return 0
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
warn "required OE will not be checked (not configured in ${_CONFIG_FILE})"
|
||||
@@ -150,7 +150,7 @@ then
|
||||
else
|
||||
_MSG="unable to run command: {${_SHOW_PATCHES_BIN}}"
|
||||
log_hc "$0" 1 "${_MSG}"
|
||||
return 0
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
warn "required patches will not be checked (not configured in ${_CONFIG_FILE})"
|
||||
|
||||
Reference in New Issue
Block a user