update mymotd time user
This commit is contained in:
parent
a6360f5ed9
commit
009702747d
|
@ -6,7 +6,7 @@ RESET="\033[0m"
|
|||
#LAST_LOGIN_USER=$(lastlog | tail -n 1 | awk '{print $1}')
|
||||
LAST_LOGIN_USER=$(last |head -n +2 | tail -n 1 | awk '{ print $1 }')
|
||||
#LAST_LOGIN_TIME_HOUR=$(lastlog | tail -n 1 | awk '{print $4" "$5" "$6" "$7}')
|
||||
LAST_LOGIN_TIME_HOUR=$(last |head -n +2 | tail -n 1 | awk '{ print $4" "$5" "$6" "$7 }')
|
||||
LAST_LOGIN_TIME_HOUR=$(last |head -n +2 | tail -n 1 | awk '{ print $4" "$5" "$6" "$7" "$8" "$9 }')
|
||||
#LAST_LOGIN_IP_FROM_USER=$(lastlog | tail -n 1 | awk '{print $3}')
|
||||
LAST_LOGIN_IP_FROM_USER=$(last |head -n +2 | tail -n 1 | awk '{ print $3 }')
|
||||
UPTIME_SYSTEM=$(uptime -p | tr -d ',')
|
||||
|
|
Loading…
Reference in New Issue