Fixed cpu speed on elementary, Added more rules to getgpu for AMD cards
This commit is contained in:
parent
bd230f31f7
commit
0b75228f60
5
fetch
5
fetch
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue