

filemoon
-
Posts
0 -
Joined
-
Last visited
Reputation Activity
-
filemoon reacted to Baos in armbian ssh login motd
For /etc/update-motd.d/30-sysinfo I noticed it likes to say my system is up 6 seconds and then when I check with uptime I notice it's wrong and has been up for hours or over a day.
Just curious if there is a reason for not doing it in a way similar to this?
function displaytime { # we need dedicated function local X=$(/usr/bin/uptime -p) printf "Up time: " printf "\x1B[92m%s\x1B[0m\t\t" "$X" }