scripts/update-motd.d/99-tail

26 lines
449 B
Plaintext
Raw Permalink Normal View History

2018-08-08 15:15:02 +02:00
#!/bin/sh
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
# {{ ansible_managed | comment }}
2018-08-08 15:15:02 +02:00
# Colors definition [[[
BLACK='\033[49;30m'
BLACKB='\033[49;90m'
RED='\033[0;31m'
REDB='\033[1;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[94;49m'
MAGENTA='\033[0;35m'
CYAN='\033[36;49m'
WHITE='\033[0;37m'
BOLD='\033[1m'
RESET='\033[0m'
# ]]]
printf "${BLACKB}%80s${RESET}\\n" | tr ' ' -
if [ -f /etc/motd.tail ] ; then
cat /etc/motd.tail
fi