Fixed cpu speed on elementary, Added more rules to getgpu for AMD cards

This commit is contained in:
Dylan 2016-01-24 08:16:06 +11:00
parent bd230f31f7
commit 0b75228f60
1 changed files with 3 additions and 2 deletions

5
fetch
View File

@ -561,7 +561,7 @@ getcpu () {
# Get cpu speed # Get cpu speed
case "$distro" in case "$distro" in
*"buntu"* | "CentOS"*) *"buntu"* | "CentOS"* | "elementary"*)
speed=$(awk -F ': ' '/cpu MHz/ {printf $2; exit}' /proc/cpuinfo) speed=$(awk -F ': ' '/cpu MHz/ {printf $2; exit}' /proc/cpuinfo)
speed=${speed/\./} speed=${speed/\./}
;; ;;
@ -685,7 +685,7 @@ getgpu () {
gpu=${gpu/'Advanced Micro Devices, Inc.' } gpu=${gpu/'Advanced Micro Devices, Inc.' }
gpu=${gpu/'[AMD/ATI]' } gpu=${gpu/'[AMD/ATI]' }
gpu=${gpu/'Tahiti PRO'} gpu=${gpu/'Tahiti PRO'}
gpu=${gpu/'Mars'} gpu=${gpu/'Seymour'}
gpu=${gpu/' ['} gpu=${gpu/' ['}
gpu=${gpu/']'} gpu=${gpu/']'}
@ -744,6 +744,7 @@ getgpu () {
gpu=${gpu/'PRO' } gpu=${gpu/'PRO' }
gpu=${gpu/'OEM' } gpu=${gpu/'OEM' }
gpu=${gpu/'Mars' } gpu=${gpu/'Mars' }
gpu=${gpu/'Series'}
gpu=${gpu/\/*} gpu=${gpu/\/*}
fi fi
} }