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
1 changed files with 5 additions and 1 deletions

View File

@ -1240,6 +1240,10 @@ getmemory () {
memused=$(((${memwired//.} + ${memactive//.} + ${memcompressed//.}) * 4 / 1024))
;;
"iPhone OS")
memtotal=$(printf "%s\n" "$(sysctl -n hw.memsize)"/1024^2 | bc)
;;
"OpenBSD" | "BSD")
case "$distro" in
"OpenBSD"*)
@ -1585,7 +1589,7 @@ getfont () {
getdisk () {
# df flags
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" ;;
*"BSD")