Change message of the day

This commit is contained in:
waal70
2025-10-12 15:12:24 +02:00
parent 70ebfadeb9
commit c25ef79674
18 changed files with 1001 additions and 96 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/bash
source /etc/update-motd.d/colors.txt
echo -e " ${TITLE_COLOR}Users logged in.....:${NC} ${TEXT_COLOR}$(w -h | awk '{ printf "%s ", $1; }') $(top -bn1 | awk 'BEGIN { FS=", "; }
$2~/user/ { print " (" $2 " total)"; }
$3~/user/ { print " (" $3 " total)"; }')"