feat(nvidia): add script check for legacy nvidia hardware (#1428)

* feat: add script check for legacy nvidia hardware on nvidia image

* fix(nvidia-legacy-hardware): remove unintended output from grep in the if condition

* chore(nvidia): add Volta to nvidia-legacy-hardware
This commit is contained in:
HikariKnight 2024-08-14 15:53:09 +02:00 committed by GitHub
parent 8fe45ee89e
commit d88b9bcbed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,7 @@
#!/usr/bin/bash
# Returns true if legacy nvidia hardware (older than turing) using die names
# GK### (Kepler), GM### (Maxwell), GP### (Pascal), GV### (Volta)
if lspci -nn | grep -P "(VGA compatible|3D) controller .+G(K|M|P|V)\d{3}" > /dev/null; then
exit 0
fi
exit 1