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:
parent
6b7acb7fa5
commit
e81ea5a023
1 changed files with 4 additions and 4 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue