Fix uptime for Busybox distros

This commit is contained in:
arcadius3d authored and jschx committed 2018-04-28 20:18:23 -05:00
1 parent fbeb1154bf
commit 329cf33923
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@
host="$(hostname)"
os='Alpine Linux'
kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')"
uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')"
packages="$(apk info | wc -l)"
shell="$(basename ${SHELL})"
+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