Skip to content

Instantly share code, notes, and snippets.

@benheng
Created April 5, 2015 19:28
Show Gist options
  • Save benheng/fa4f20f1a4f1d3580927 to your computer and use it in GitHub Desktop.
Save benheng/fa4f20f1a4f1d3580927 to your computer and use it in GitHub Desktop.
Arch Linux Raspberry Pi MOTD
#!/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=""
# 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