Skip to content

Instantly share code, notes, and snippets.

@sjoerd-dijkstra
Created June 23, 2018 19:53
Show Gist options
  • Save sjoerd-dijkstra/3fdb2e536c6ad842784c58bda221811b to your computer and use it in GitHub Desktop.
Save sjoerd-dijkstra/3fdb2e536c6ad842784c58bda221811b to your computer and use it in GitHub Desktop.
#!/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