Hopefully fixed blank gpu with nvidia cards
This commit is contained in:
parent
19b4861e83
commit
c5c34637b8
4
fetch
4
fetch
|
@ -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")
|
||||
|
|
Reference in New Issue