Move gpu shorthand
This commit is contained in:
parent
76c3e949fe
commit
10c3ff2d3e
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
|
||||
|
|
Reference in New Issue