From 0b75228f60277988b8fe2c58ccba8d47df0611a3 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 24 Jan 2016 08:16:06 +1100 Subject: [PATCH] Fixed cpu speed on elementary, Added more rules to getgpu for AMD cards --- fetch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fetch b/fetch index 194fd4fd..839ed0d5 100755 --- a/fetch +++ b/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 }