OpenSUSE: Add uptime support
This commit is contained in:
parent
a311897efd
commit
74d4943115
2
fetch
2
fetch
|
@ -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/ / }
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue