Adding in support for GPU detection on OS X. Tested by @spaghetti2514 and Hu6.

This commit is contained in:
Brett Bohnenkamper
2013-06-13 21:55:44 -05:00
parent b9ecc05b58
commit ea14d5bc4b

View File

@@ -738,6 +738,9 @@ detectgpu () {
gpu="${gpu:1}"
gpu_info=$(echo "$gpu_info" | grep "OpenGL vendor string")
fi
if [[ "${distro}" == "Mac OS X" ]]; then
gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {print $2}')
fi
if [ -n "$gpu" ];then
if [ $(echo "$gpu_info" | grep -i nvidia | wc -l) -gt 0 ];then