Change message of the day
This commit is contained in:
7
templates/etc/update-motd.d/01-last-login
Executable file
7
templates/etc/update-motd.d/01-last-login
Executable 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)"; }')"
|
||||
Reference in New Issue
Block a user