Created
April 5, 2015 19:28
-
-
Save benheng/fa4f20f1a4f1d3580927 to your computer and use it in GitHub Desktop.
Arch Linux Raspberry Pi MOTD
This file contains hidden or 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 | |
# Define the filename to use as output | |
MOTD="/etc/motd" | |
# Color variables | |
R="\e[0;31m" | |
G="\e[0;32m" | |
T="\e[0;36m" | |
W="[0;37m" | |
# Clear the screen prior to showing the motd | |
clear > $MOTD | |
echo -e " $G.~~. .~~.$W | |
$T.$W $G'. \ ' ' / .'$W | |
$T/#\\$W _ $T _ _ $W _ $R.~ .~~~..~.$W | |
$T/###\\$W __ _ _ __ ___| |__ $T| (_)_ __ _ ___ __$W| | _ ___ __ __ $R: .~.'~'.~. :$W | |
$T/#####\\$W / _' | '__/ __| '_ \ $T| | | '_ \| | | \ \/ /$W| | / \ | _ \ \/ | $R~ ( ) ( ) ~$W | |
$T/##.-.##\\$W | (_| | | | (__| | | |$T| | | | | | |_| |> < $W| |/ ^ \| / |\/| | $R( : '~'.~.'~' : )$W | |
$T/##( )##\\$W \__,_|_| \___|_| |_|$T|_|_|_| |_|\__,_/_/\_\\$W| /_/ \_\_|_\_| |_| $R~ .~ ( ) ~. ~$W | |
$T/#.-- --.#\\$W $T $W|_| $G>$R Raspberry Pi$W $R( : '~' : )$W | |
$T/' '\\$W $R'~ .~~~. ~'$W | |
$R'~'$W" >> $MOTD | |
echo "Your message of the day has been rewritten." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment