File: //opt/BCLinux/bse/secure_check/c01_motd
#!/bin/sh
#=======================================================
InsertSection "check /etc/motd banner"
if [ -s /etc/motd ]; then
logtext "has /etc/motd set, checking ok"
Display --indent 2 --text "- Has /etc/motd set... " --result OK --color GREEN
AddHP 1 1
else
echo "c01" >> $RESULT_FILE
echo "" >> $RESULT_FILE
logtext "WRN_C01: $(loadtext TXT_WRN_C01)"
logtext "Suggestion: $(loadtext TXT_SUG_C01)"
Display --indent 2 --text "- No /etc/motd set... " --result WARNING --color RED
AddHP 0 1
fi