Hopefully fixed blank gpu with nvidia cards

This commit is contained in:
Dylan 2016-01-21 07:20:42 +11:00
parent 19b4861e83
commit c5c34637b8
1 changed files with 29 additions and 33 deletions

4
fetch
View File

@ -661,9 +661,6 @@ getcpu () {
getgpu () {
case "$os" in
"Linux" | "OpenBSD")
if type -p nvidia-smi >/dev/null 2>&1; then
gpu="$(nvidia-smi | awk -F':' '/Product Name/ {printf $2}')"
else
gpu="$(lspci | grep "VGA")"
gpu=${gpu/* VGA compatible controller: }
gpu=${gpu/(rev*)}
@ -700,7 +697,6 @@ getgpu () {
esac
gpu="$brand $gpu"
fi
;;
"Mac OS X")