update var NUMBER_USERS_CONNECTED mymotd

This commit is contained in:
Ruben Blanco 2023-10-31 10:44:40 +01:00
parent 98b618cb03
commit 87f9449cae
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 $6}' | tr -d ",")
NUMBER_USERS_CONNECTED=$(uptime | awk '{print $4" "$5}' | tr -d ",")
LIST_USERS_CONNECTED=$(w | tail -n +2)
KERNEL=$(uname -r)
PACKAGES=$(dpkg -l | tail -n +6 | wc -l)