Skip to content

Instantly share code, notes, and snippets.

@mid-kid
Forked from piksel/raspi-motd.sh
Last active December 12, 2015 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mid-kid/4734702 to your computer and use it in GitHub Desktop.
Save mid-kid/4734702 to your computer and use it in GitHub Desktop.
Modified raspi-motd.sh. Thanks to piksel for the template
#!/bin/bash
logo="$(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)"
if [ `whoami` != "root" ]; then
echo "$logo"
echo "Run as root to update your motd."
else
echo "$logo"
echo "$logo" > /etc/motd
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