#!/bin/sh
#=======================================================
InsertSection "set /etc/motd banner"
if [ $SET_MOTD -eq 1 ]; then
cp -np /etc/motd /etc/motd_bak
echo $MOTD > /etc/motd
if [ -s /etc/motd ]; then
Display --indent 2 --text "- Set motd banner finished... " --result FINISHED --color GREEN
else
Display --indent 2 --text "- Set motd banner failed... " --result FAILED --color RED
fi
else
Display --indent 2 --text "- Skip set motd banner due to config file... " --result SKIPPING --color YELLOW
fi