Fixed cpu speed on elementary, Added more rules to getgpu for AMD cards
This commit is contained in:
parent
bd230f31f7
commit
0b75228f60
1 changed files with 3 additions and 2 deletions
5
fetch
5
fetch
|
@ -561,7 +561,7 @@ getcpu () {
|
|||
|
||||
# Get cpu speed
|
||||
case "$distro" in
|
||||
*"buntu"* | "CentOS"*)
|
||||
*"buntu"* | "CentOS"* | "elementary"*)
|
||||
speed=$(awk -F ': ' '/cpu MHz/ {printf $2; exit}' /proc/cpuinfo)
|
||||
speed=${speed/\./}
|
||||
;;
|
||||
|
@ -685,7 +685,7 @@ getgpu () {
|
|||
gpu=${gpu/'Advanced Micro Devices, Inc.' }
|
||||
gpu=${gpu/'[AMD/ATI]' }
|
||||
gpu=${gpu/'Tahiti PRO'}
|
||||
gpu=${gpu/'Mars'}
|
||||
gpu=${gpu/'Seymour'}
|
||||
gpu=${gpu/' ['}
|
||||
gpu=${gpu/']'}
|
||||
|
||||
|
@ -744,6 +744,7 @@ getgpu () {
|
|||
gpu=${gpu/'PRO' }
|
||||
gpu=${gpu/'OEM' }
|
||||
gpu=${gpu/'Mars' }
|
||||
gpu=${gpu/'Series'}
|
||||
gpu=${gpu/\/*}
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue