Add banner.sh
This commit is contained in:
parent
88ff783ba8
commit
1107e525e3
24
banner.sh
Normal file
24
banner.sh
Normal 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"
|
Loading…
Reference in New Issue
Block a user