update mymotd

This commit is contained in:
Ruben Blanco 2023-10-31 12:52:12 +01:00
parent c7e89dd206
commit 81f16df4f7
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ LAST_LOGIN_USER=$(lastlog | tail -n 1 | awk '{print $1}')
LAST_LOGIN_TIME_HOUR=$(lastlog | tail -n 1 | awk '{print $4" "$5" "$6" "$7}')
LAST_LOGIN_IP_FROM_USER=$(lastlog | tail -n 1 | awk '{print $3}')
UPTIME_SYSTEM=$(uptime -p | tr -d ',')
NUMBER_USERS_CONNECTED=$(uptime | awk '{print $4" "$5}' | tr -d ",")
NUMBER_USERS_CONNECTED=$(uptime | awk '{print $5" "$6}' | tr -d ",")
LIST_USERS_CONNECTED=$(w | tail -n +2)
KERNEL=$(uname -r)
PACKAGES=$(dpkg -l | tail -n +6 | wc -l)