Fix lspci not found on open SUSE
This commit is contained in:
parent
73d50eb6b8
commit
de8ab1eeb7
2
fetch
2
fetch
|
@ -863,7 +863,7 @@ getgpu () {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux")
|
"Linux")
|
||||||
# Get the GPUs
|
# Get the GPUs
|
||||||
gpu="$(lspci | grep -F "VGA")"
|
gpu="$(PATH="/usr/sbin:$PATH" lspci | grep -F "VGA")"
|
||||||
gpu=${gpu//??':'??'.'?}
|
gpu=${gpu//??':'??'.'?}
|
||||||
|
|
||||||
# Count the number of GPUs
|
# Count the number of GPUs
|
||||||
|
|
Reference in New Issue