gpu: Fix ATI/AMD branding issue.

This commit is contained in:
Dylan Araps 2018-04-25 11:42:11 +10:00
parent da94f65b8c
commit 0d89e1a400
1 changed files with 3 additions and 1 deletions

View File

@ -1313,8 +1313,10 @@ get_gpu() {
case "$gpu" in case "$gpu" in
*"advanced"*) *"advanced"*)
brand="${gpu/*AMD*/AMD}" brand="${gpu/*AMD*ATI*/AMD ATI}"
brand="${brand:-${gpu/*AMD*/AMD}}"
brand="${brand:-${gpu/*ATI*/ATi}}" 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 }"