Fixed GPU detection was always reporting AMD

On branch main
 Your branch is up to date with 'origin/main'.

 Changes to be committed:
	modified:   install-zaneyos.sh
This commit is contained in:
Don Williams 2026-04-04 05:47:06 -04:00
commit e81ea5a023

View file

@ -141,13 +141,13 @@ has_vm=false
if lspci | grep -qi 'vga\|3d\|display'; then
while read -r line; do
if echo "$line" | grep -qi 'nvidia'; then
if echo "$line" | grep -Eqi '\b(nvidia)\b'; then
has_nvidia=true
elif echo "$line" | grep -qi 'amd\|ati\|advanced micro devices'; then
elif echo "$line" | grep -Eqi '\b(amd|ati|advanced micro devices)\b'; then
has_amd=true
elif echo "$line" | grep -qi 'intel'; then
elif echo "$line" | grep -Eqi '\b(intel)\b'; then
has_intel=true
elif echo "$line" | grep -qi 'virtio\|vmware'; then
elif echo "$line" | grep -Eqi '\b(virtio|vmware)\b'; then
has_vm=true
fi
done < <(lspci | grep -i 'vga\|3d\|display')