Add banner.sh

This commit is contained in:
Zakary Timson 2023-08-03 00:39:58 +00:00
parent 88ff783ba8
commit 1107e525e3

24
banner.sh Normal file
View File

@ -0,0 +1,24 @@
# Save as: /etc/update-motd.d/00-banner
#!/usr/bin/env bash
# Banner
cat << 'EOF'
__________________________________________
_______/\\\\\__________________/\\\\\_____
_____/\\\\//____/\\\\\\\\\\___\////\\\\___
____\ \\\\_____\//////\\\/_______\ \\\\___
___/\\\\/__________/\\\/_________\///\\\\_
__\///\\\\_______/\\\/____________/\\\\/__
____\ \\\\______/\\\\\\\\\\\_____\ \\\\___
____\///\\\\\__\///////////____/\\\\\/____
______\/////__________________\/////______
__________________________________________
EOF
# System name & OS
WIDTH=31
SYSTEM="$(hostname) ($(lsb_release -s -d))"
SYSTEM_SPACER=$(expr $WIDTH + length "$SYSTEM" / 2)
printf "%${SYSTEM_SPACER}s\n" "$SYSTEM"