Minor fixes and improvements.

This commit is contained in:
Andreas B. Mundt 2023-09-19 19:03:38 +02:00
parent 2e0ffda273
commit b62498da3a
5 changed files with 10 additions and 3 deletions

View file

@ -6,7 +6,7 @@ set -eu
action="systemctl poweroff"
uptime=$(cat /proc/uptime | cut -f1 -d.)
maxidle=3600
maxidle=3600 ## seconds
u=($(loginctl list-users --no-legend | sort -hr | head -1))
una=${u[1]:-''}