mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-06 15:10:00 +00:00
Uptime: Add puppy linux support
This commit is contained in:
11
fetch
11
fetch
@@ -500,7 +500,16 @@ getkernel() {
|
|||||||
getuptime () {
|
getuptime () {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux")
|
"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")
|
"Mac OS X" | *"BSD")
|
||||||
|
|||||||
Reference in New Issue
Block a user