Skip to content

Commit

Permalink
Update model fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevithakannan2 committed Oct 12, 2024
1 parent 1fe1bff commit e3e2ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tabs/system-setup/arch/nvidia-drivers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ installDeps() {

checkHardware() {
# 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
GM|GP|GV) return 1 ;;
TU|GA|AD) return 0 ;;
Expand Down

0 comments on commit e3e2ad0

Please sign in to comment.