
Linux From Scratch - Version 7.0
260
log_failure_msg()
{
echo -n -e "${@}"
echo -e "${SET_COL}${BRACKET}[${FAILURE} FAIL ${BRACKET}]${NORMAL}"
timespec
echo -e "${STAMP} ${@} FAIL" >> ${BOOTLOG}
return 0
}
log_failure_msg2()
{
echo -n -e "${@}"
echo -e "${SET_COL}${BRACKET}[${FAILURE} FAIL ${BRACKET}]${NORMAL}"
echo "FAIL" >> ${BOOTLOG}
return 0
}
################################################################################
# log_warning_msg() #
# Usage: log_warning_msg ["message"] #
# #
# Purpose: Print a warning status message to the screen and #
# a boot log file. #
# #
# Return values: Not used #
################################################################################
log_warning_msg()
{
echo -n -e "${@}"
echo -e "${SET_COL}${BRACKET}[${WARNING} WARN ${BRACKET}]${NORMAL}"
timespec
echo -e "${STAMP} ${@} WARN" >> ${BOOTLOG}
return 0
}
################################################################################
# log_info_msg() #
# Usage: log_info_msg message #
# #
# Purpose: Print an information message to the screen and #
# a boot log file. Does not print a trailing newline character. #
# #
# Return values: Not used #
################################################################################
log_info_msg()
{
echo -n -e "${@}"
timespec
echo -n -e "${STAMP} ${@}" >> ${BOOTLOG}
return 0
}
log_info_msg2()
Comentarios a estos manuales