From 44ace4e8376ffd61265862a34144dd8287368fe8 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 9 Feb 2016 07:49:42 +1100 Subject: [PATCH] Uptime: Add puppy linux support --- fetch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/fetch b/fetch index 53933594..261f672e 100755 --- a/fetch +++ b/fetch @@ -500,7 +500,16 @@ getkernel() { getuptime () { case "$os" in "Linux") - uptime="$(uptime -p)" + case "$distro" in + "Puppy Linux"*) + uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}') + uptime=${uptime/ / } + ;; + + *) + uptime="$(uptime -p)" + ;; + esac ;; "Mac OS X" | *"BSD")