]> git.ipfire.org Git - thirdparty/systemd.git/commit
hostnamectl: show age of firmware as time span, too
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Jun 2023 13:26:19 +0000 (15:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Jun 2023 16:40:30 +0000 (18:40 +0200)
commit2b5eff67f5dd91c31dddf3b8e2142bb4c30d3419
treeeacafec8058d579338bd804fefc0bcdb646032ad
parent4c834779cd16dc75fcc206ce6a0b2ca2c0772556
hostnamectl: show age of firmware as time span, too

This converts the date into a relative timespan from the current time
on, and outputs it. It marks it yellow if older than two years, since
old firmware is probably a security risk. We don't make it red, since we
don't know though.
src/hostname/hostnamectl.c