Make motd.sh generic and configurable
This commit is contained in:
parent
95b8819638
commit
3f316732da
4
motd.sh
4
motd.sh
@ -7,7 +7,7 @@ echo -e
|
|||||||
|
|
||||||
|
|
||||||
### Hostname ###
|
### Hostname ###
|
||||||
echo -e "$(/usr/bin/env figlet -w $(tput cols) "$(hostname)" | /usr/bin/env lolcat -f -F 0.05 -S 50)"
|
echo -e "$(/usr/bin/env figlet -w $(tput cols) "$(hostname)" | /usr/bin/env lolcat -f -F 0.05 -S $(echo $((0x$(hostname | md5sum | cut -c 1-10))) | cut -c 2-5))"
|
||||||
|
|
||||||
|
|
||||||
echo -e
|
echo -e
|
||||||
@ -26,7 +26,7 @@ green="\e[1;32m"
|
|||||||
red="\e[1;31m"
|
red="\e[1;31m"
|
||||||
undim="\e[0m"
|
undim="\e[0m"
|
||||||
|
|
||||||
services=("docker" "mariadb" "cronie")
|
services=($(cat /home/arisu/.motd.services))
|
||||||
# sort services
|
# sort services
|
||||||
IFS=$'\n' services=($(sort <<<"${services[*]}"))
|
IFS=$'\n' services=($(sort <<<"${services[*]}"))
|
||||||
unset IFS
|
unset IFS
|
||||||
|
Loading…
Reference in New Issue
Block a user