Created
March 4, 2015 21:30
-
-
Save ennorehling/767a6723d2ca21a2e998 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
logo=" | |
$(tput setaf 2).~~. .~~.$(tput sgr0) | |
$(tput setaf 2)'. \ ' ' / .'$(tput sgr0) | |
$(tput setaf 1).~ .~~~..~.$(tput sgr0) _ _ | |
$(tput setaf 1): .~.'~'.~. :$(tput sgr0) ___ ___ ___ ___| |_ ___ ___ ___ _ _ ___|_| | |
$(tput setaf 1)~ ( ) ( ) ~$(tput sgr0) | _| .'|_ -| . | . | -_| _| _| | | | . | | | |
$(tput setaf 1)( : '~'.~.'~' : )$(tput sgr0) |_| |__,|___| _|___|___|_| |_| |_ | | _|_| | |
$(tput setaf 1)~ .~ ( ) ~. ~$(tput sgr0) |_| |___| |_| | |
$(tput setaf 1)( : '~' : )$(tput sgr0) | |
$(tput setaf 1)'~ .~~~. ~'$(tput sgr0) | |
$(tput setaf 1)'~'$(tput sgr0) | |
" | |
if [ `whoami` != "root" ]; then | |
echo "$logo" | |
echo "Run as root to update your motd." | |
else | |
echo "$logo" > /etc/motd | |
/etc/init.d/bootlogs | |
echo "Updated MOTD. Log in to see the new logo." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment