Uptime: Match Puppy linux's weird way of versioning
This commit is contained in:
parent
44ace4e837
commit
4a99a128f9
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"*)
|
"Puppy Linux"* | "Quirky Werewolf"* | "Precise Puppy"*)
|
||||||
uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}')
|
uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}')
|
||||||
uptime=${uptime/ / }
|
uptime=${uptime/ / }
|
||||||
;;
|
;;
|
||||||
|
|
Reference in New Issue