From b594ff96991cf7b43ecd2caeb9df07d272154484 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 21 Sep 2014 11:45:57 +0100 Subject: [PATCH] Login message --- install-freedombone.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 1cc80d31..02e82e9d 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -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