gpu: Fix ATI/AMD branding issue.

This commit is contained in:
Dylan Araps 2018-04-25 11:39:03 +10:00
parent dcd7171c92
commit da94f65b8c

View file

@ -1313,6 +1313,8 @@ get_gpu() {
case "$gpu" in case "$gpu" in
*"advanced"*) *"advanced"*)
brand="${gpu/*AMD*/AMD}"
brand="${brand:-${gpu/*ATI*/ATi}}"
gpu="${gpu/'[AMD/ATI]' }" gpu="${gpu/'[AMD/ATI]' }"
gpu="${gpu/'[AMD]' }" gpu="${gpu/'[AMD]' }"
gpu="${gpu/OEM }" gpu="${gpu/OEM }"
@ -1320,7 +1322,7 @@ get_gpu() {
gpu="${gpu/ \/ *}" gpu="${gpu/ \/ *}"
gpu="${gpu/*\[}" gpu="${gpu/*\[}"
gpu="${gpu/\]*}" gpu="${gpu/\]*}"
gpu="AMD $gpu" gpu="$brand $gpu"
;; ;;
*"nvidia"*) *"nvidia"*)