GPU: Remove duplicate substitutions

This commit is contained in:
Dylan Araps 2016-10-23 11:22:17 +11:00
parent f4b266b5c6
commit 5dddaa0b26

View file

@ -1013,6 +1013,8 @@ getgpu() {
gpu="${gpu/* VGA compatible controller: }" gpu="${gpu/* VGA compatible controller: }"
gpu="${gpu/* 3D controller: }" gpu="${gpu/* 3D controller: }"
gpu="${gpu/(rev*)}" gpu="${gpu/(rev*)}"
gpu="${gpu/\[}"
gpu="${gpu/\]}"
case "$gpu" in case "$gpu" in
intel*) intel*)
@ -1025,8 +1027,6 @@ getgpu() {
gpu="${gpu/Tahiti PRO}" gpu="${gpu/Tahiti PRO}"
gpu="${gpu/XTX}" gpu="${gpu/XTX}"
gpu="${gpu/ OEM}" gpu="${gpu/ OEM}"
gpu="${gpu/ \[}"
gpu="${gpu/\]}"
gpu="${gpu/*Radeon/Radeon}" gpu="${gpu/*Radeon/Radeon}"
brand="AMD " brand="AMD "
@ -1036,8 +1036,6 @@ getgpu() {
gpu="${gpu/NVIDIA Corporation }" gpu="${gpu/NVIDIA Corporation }"
gpu="${gpu/G????M }" gpu="${gpu/G????M }"
gpu="${gpu/G???? }" gpu="${gpu/G???? }"
gpu="${gpu/\[}"
gpu="${gpu/\] }"
brand="NVIDIA " brand="NVIDIA "
;; ;;