Add disk support and memory total to iOS

This commit is contained in:
Dylan 2016-05-07 21:12:24 +10:00
parent f947031e38
commit 928ffa1cf2

View file

@ -1240,6 +1240,10 @@ getmemory () {
memused=$(((${memwired//.} + ${memactive//.} + ${memcompressed//.}) * 4 / 1024)) memused=$(((${memwired//.} + ${memactive//.} + ${memcompressed//.}) * 4 / 1024))
;; ;;
"iPhone OS")
memtotal=$(printf "%s\n" "$(sysctl -n hw.memsize)"/1024^2 | bc)
;;
"OpenBSD" | "BSD") "OpenBSD" | "BSD")
case "$distro" in case "$distro" in
"OpenBSD"*) "OpenBSD"*)
@ -1585,7 +1589,7 @@ getfont () {
getdisk () { getdisk () {
# df flags # df flags
case "$os" in case "$os" in
"Linux" | "Windows") df_flags="-h -l --total" ;; "Linux" | "iPhone Os" | "Windows") df_flags="-h -l --total" ;;
"Mac OS X") df_flags="-H / -l" ;; "Mac OS X") df_flags="-H / -l" ;;
*"BSD") *"BSD")