Add uptime and packages support for iOS
This commit is contained in:
parent
90447980bd
commit
f947031e38
8
neofetch
8
neofetch
|
@ -579,7 +579,7 @@ getuptime () {
|
|||
esac
|
||||
;;
|
||||
|
||||
"Mac OS X" | *"BSD")
|
||||
"Mac OS X" | "iPhone OS" | *"BSD")
|
||||
# Get boot time in seconds
|
||||
boot="$(sysctl -n kern.boottime)"
|
||||
boot="${boot/'{ sec = '}"
|
||||
|
@ -656,7 +656,7 @@ getuptime () {
|
|||
|
||||
getpackages () {
|
||||
case "$os" in
|
||||
"Linux")
|
||||
"Linux" | "iPhone OS")
|
||||
type -p pacman >/dev/null 2>&1 && \
|
||||
packages="$(pacman -Qq --color never | wc -l)"
|
||||
|
||||
|
@ -947,6 +947,10 @@ getcpu () {
|
|||
cores=$(sysctl -n hw.ncpu)
|
||||
;;
|
||||
|
||||
"iPhone OS")
|
||||
cpu=""
|
||||
;;
|
||||
|
||||
*)
|
||||
case "$distro" in
|
||||
"OpenBSD"* | "FreeBSD"*)
|
||||
|
|
Reference in New Issue