Commit 5dddaa0b authored by Dylan Araps's avatar Dylan Araps

GPU: Remove duplicate substitutions

parent f4b266b5
...@@ -1013,6 +1013,8 @@ getgpu() { ...@@ -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() { ...@@ -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() { ...@@ -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 "
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment