1
0
Fork 0

Add system-update check to banner

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-06-25 10:44:40 +02:00
parent 3247dac609
commit be7241cfa8
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -36,6 +36,14 @@ else
kv "Go-Version" "Unknown, network unreachable"
fi
## Check for system updates
sys_updates=$(checkupdates | wc -l)
if [ ${sys_updates} -gt 0 ]; then
kv "System-Update" "${sys_updates} packages needs updates"
else
kv "System-Update" "Up-to-date"
fi
## Log generation time
kv "Updated" "$(date +"%Y-%m-%d %H:%M")"