Created
June 23, 2018 19:53
-
-
Save sjoerd-dijkstra/3fdb2e536c6ad842784c58bda221811b 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 setaf 1) | |
.~ .~~~..~. | |
: .~.'~'.~. : | |
~ ( ) ( ) ~ | |
( : '~'.~.'~' : ) | |
~ .~ ( ) ~. ~ | |
( : '~' : ) $(tput sgr0)Raspberry Pi$(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