Fixed global explorers on OSX

This commit is contained in:
Manuel Hutter 2014-06-17 19:04:22 +02:00
commit c36fba4b99
3 changed files with 44 additions and 16 deletions

View file

@ -22,6 +22,16 @@
# FIXME: other system types (not linux ...)
if [ -r /proc/meminfo ]; then
echo "$(cat /proc/meminfo | grep "MemTotal:" | awk '{print $2}')"
fi
os=$("$__explorer/os")
case "$os" in
"macosx")
let memsize=$(sysctl -n hw.memsize)/1024
echo "$memsize"
;;
*)
if [ -r /proc/meminfo ]; then
echo "$(cat /proc/meminfo | grep "MemTotal:" | awk '{print $2}')"
fi
;;
esac