Skip to content

Commit e3e2ad0

Browse files
Update model fetching
1 parent 1fe1bff commit e3e2ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/tabs/system-setup/arch/nvidia-drivers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ installDeps() {
1818

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

0 commit comments

Comments
 (0)