Fix uptime for Busybox distros

This commit is contained in:
arcadius3d
2018-04-28 20:18:23 -05:00
committed by jschx
parent d753e48db3
commit 4cb2fc110f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
host="$(hostname)"
os='Linux' # I'd just like to interject for a moment...
kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')"
uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')"
shell="$(basename ${SHELL})"
if [ -z "${WM}" ]; then