mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-29 12:22:20 +00:00
d88b9bcbed
* 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
8 lines
271 B
Bash
Executable File
8 lines
271 B
Bash
Executable File
#!/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
|