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"
}
Question
Baos
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?
Link to comment
Share on other sites
10 answers to this question
Recommended Posts