Skip to content

Instantly share code, notes, and snippets.

@aruseni
Created April 14, 2014 01:35
Show Gist options
  • Save aruseni/10609902 to your computer and use it in GitHub Desktop.
Save aruseni/10609902 to your computer and use it in GitHub Desktop.
/etc/profile.d/motd.sh — a simple script for displaying dynamic messages shown on login
# No need to redisplay it on sudo su and in screen sessions
if [ "$(id -u)" != "0" ] && [[ ! $TERMCAP =~ screen ]]; then
/etc/motd.tcl
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment