Hopefully fixed blank gpu with nvidia cards
This commit is contained in:
@@ -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
Block a user