Login message

This commit is contained in:
Bob Mottram 2014-09-21 11:45:57 +01:00
parent 815bfba7af
commit b594ff9699
1 changed files with 17 additions and 0 deletions

View File

@ -30,6 +30,22 @@ function argument_checks {
fi
}
function change_login_message {
if grep -Fxq "change_login_message" $COMPLETION_FILE; then
return
fi
echo '' > /etc/motd
echo ".---. . . " >> /etc/motd
echo "| | | " >> /etc/motd
echo "|--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-. " >> /etc/motd
echo "| | (.-' (.-' ( | ( )| | | | )( )| | (.-' " >> /etc/motd
echo "' ' `--' `--' `-'`- `-' ' ' `-'`-' `-' ' `- `--'" >> /etc/motd
echo "" >> /etc/motd
echo " Freedom in the Cloud" >> /etc/motd
echo "" >> /etc/motd
echo 'change_login_message' >> $COMPLETION_FILE
}
function remove_proprietary_repos {
if grep -Fxq "remove_proprietary_repos" $COMPLETION_FILE; then
return
@ -831,6 +847,7 @@ argument_checks
remove_proprietary_repos
initial_setup
install_editor
change_login_message
enable_backports
update_the_kernel
enable_zram