Move gpu shorthand
This commit is contained in:
parent
76c3e949fe
commit
10c3ff2d3e
1 changed files with 8 additions and 8 deletions
16
fetch
16
fetch
|
@ -645,14 +645,6 @@ getgpu () {
|
|||
gpu=$(lspci | grep "VGA" | grep -o '\[.*\]')
|
||||
gpu=${gpu//[}
|
||||
gpu=${gpu//]}
|
||||
|
||||
if [ "$gpu_shorthand" == "on" ]; then
|
||||
gpu=${gpu/'Rev. '?}
|
||||
gpu=${gpu/'AMD/ATI'/AMD}
|
||||
gpu=${gpu/'Tahiti' }
|
||||
gpu=${gpu/'PRO' }
|
||||
gpu=${gpu/'OEM' }
|
||||
fi
|
||||
;;
|
||||
|
||||
"Mac OS X")
|
||||
|
@ -683,6 +675,14 @@ getgpu () {
|
|||
gpu=${gpu// /}
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "$gpu_shorthand" == "on" ]; then
|
||||
gpu=${gpu/'Rev. '?}
|
||||
gpu=${gpu/'AMD/ATI'/AMD}
|
||||
gpu=${gpu/'Tahiti' }
|
||||
gpu=${gpu/'PRO' }
|
||||
gpu=${gpu/'OEM' }
|
||||
fi
|
||||
}
|
||||
|
||||
# Get memory
|
||||
|
|
Loading…
Reference in a new issue