Update model fetching

This commit is contained in:
Jeevitha Kannan K S 2024-10-12 15:18:24 +05:30
parent 1fe1bffe1f
commit e3e2ad0f37
No known key found for this signature in database
GPG Key ID: 5904C34A2F7CE333

View File

@ -18,7 +18,7 @@ installDeps() {
checkHardware() { checkHardware() {
# Refer https://nouveau.freedesktop.org/CodeNames.html for model code names # Refer https://nouveau.freedesktop.org/CodeNames.html for model code names
model=$(lspci -k | grep -A 2 -E "(VGA|3D)" | grep controller | cut -d ' ' -f 7 | cut -c 1-2 ) model=$(lspci -k | grep -A 2 -E "(VGA|3D)" | grep NVIDIA | sed 's/.*Corporation //;s/ .*//' | cut -c 1-2)
case "$model" in case "$model" in
GM|GP|GV) return 1 ;; GM|GP|GV) return 1 ;;
TU|GA|AD) return 0 ;; TU|GA|AD) return 0 ;;