OpenSUSE: Add uptime support

This commit is contained in:
Dylan 2016-02-09 08:55:53 +11:00
parent a311897efd
commit 74d4943115
1 changed files with 1 additions and 1 deletions

2
fetch
View File

@ -501,7 +501,7 @@ getuptime () {
case "$os" in case "$os" in
"Linux") "Linux")
case "$distro" in case "$distro" in
"Puppy Linux"* | "Quirky Werewolf"* | "Precise Puppy"*) "Puppy Linux"* | "Quirky Werewolf"* | "Precise Puppy"* | "openSUSE"*)
uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}') uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}')
uptime=${uptime/ / } uptime=${uptime/ / }
;; ;;