File: //opt/BCLinux/bse/option_check/c21_issueRemove
#!/bin/sh
#=======================================================
InsertSection "check the issue file"
if [ ! ${ISVIRTUALMACHINE} -eq 1 ]; then #physical mathin
if [ -f /etc/issue ];then
echo "c21" >> $RESULT_FILE
echo "" >> $RESULT_FILE
logtext "WRN_C21: $(loadtext TXT_WRN_C21)"
logtext "Suggestion: $(loadtext TXT_SUG_C21)"
Display --indent 2 --text "- Check if there is issue file... " --result WARNING --color RED
AddHP 0 1
else
logtext "There is no issue file remain, check ok"
Display --indent 2 --text "- Check if there is issue file... " --result OK --color GREEN
AddHP 1 1
fi
else # virtual mathine
logtext "This is virtual machine, can't remove the issue file"
Display --indent 2 --text "- Check if there is issue file... " --result SKIPPED --color YELLOW
Display --indent 2 --text "This is virtual mathine, can't remove the issue file"
AddHP 1 1
fi