mirror of
https://github.com/flatcar/scripts.git
synced 2026-02-10 18:21:07 +01:00
Merge pull request #1688 from flatcar/jepio/improve-gpu-match
nvidia-drivers: Improve match for NVIDIA GPUs
This commit is contained in:
commit
57f2ead111
@ -136,10 +136,15 @@ function verify_installation() {
|
||||
}
|
||||
|
||||
function is_nvidia_probe_required() {
|
||||
if [[ -z "$(lspci | grep -i "${NVIDIA_PRODUCT_TYPE}")" ]]; then
|
||||
return 1
|
||||
# Vendor: NVIDIA, Class: VGA compatible controller
|
||||
if [[ -n "$(lspci -d 10de:*:0300)" ]]; then
|
||||
return 0
|
||||
fi
|
||||
return 0
|
||||
# Vendor: NVIDIA, Class: 3D controller
|
||||
if [[ -n "$(lspci -d 10de:*:0302)" ]]; then
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
function is_nvidia_installation_required() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user