File: //opt/BCLinux/bse/option_set/s21_issueRemove
#!/bin/sh
#=====================================================================
InsertSection "Remove the issue.net and issue file"
if [ $HIDE_ISSUE_INFO -eq 1 ]; then
if [ ! ${ISVIRTUALMACHINE} -eq 1 ]; then #physical mathin
if [ -f /etc/issue ];then
cp -np /etc/issue /etc/issue_bak
cp -np /etc/issue.net /etc/issue.net_bak
rm -f /etc/issue
rm -f /etc/issue.net
fi
if [ -f /etc/issue ];then
logtext "Still remain issue file, setting failed"
Display --indent 2 --text "- Remove the issue file... " --result FAILED --color RED
#AddHP 0 1
else
logtext "There is no issue file remain, setting ok"
Display --indent 2 --text "- Remove the issue file... " --result FINISHED --color GREEN
#AddHP 1 1
fi
else # virtual mathine
logtext "This is virtual mathine, can't remove the issue file"
Display --indent 2 --text "- Remove the issue file... " --result SKIPPED --color YELLOW
Display --indent 2 --text "This is virtual mathine, can't remove the issue file"
fi
else
Display --indent 2 --text "- Skip hide issue file due to config file... " --result SKIPPING --color YELLOW
fi