summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Debesse <dev@illwieckz.net>2016-03-26 01:12:16 +0100
committerThomas Debesse <dev@illwieckz.net>2016-03-26 01:28:36 +0100
commit3adec3aa7e6f9dea4e5f22831aa669fefcc752f9 (patch)
tree90c4879eff40ee51c407fff87c38beab88c4c33c
parent3b3838e2252a3813d95ddf84d755173452417752 (diff)
remove annoying trademark/registered notices in cpu name
-rwxr-xr-xsysinfo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysinfo.sh b/sysinfo.sh
index d588b41..b4011d9 100755
--- a/sysinfo.sh
+++ b/sysinfo.sh
@@ -18,7 +18,7 @@ swap_free=`cat /proc/meminfo | grep -i SwapFree | awk '{printf "%d",$2/1024;}'`
swap_used=`echo ${swap_total} ${swap_free} | awk '{printf "%d",$1-$2;}'`
#--- [ CPU ] --------------------------
-cpu=`cat /proc/cpuinfo | grep "model name" | head -n 1 | sed 's/[ ][ ]*/ /g;s/^.*: //' | sed -e 's/ @ .*//' | sed -e 's/ [A-Za-z]*[ -]Core Processor//'`
+cpu=`cat /proc/cpuinfo | grep "model name" | head -n 1 | sed 's/[ ][ ]*/ /g;s/^.*: //' | sed -e 's/ @ .*//' | sed -e 's/ [A-Za-z]*[ -]Core Processor//' | sed -e 's/([Tt][Mm])//;s/([Rr])//'`
if [ -z "${cpu}" ]; then
# fallback
cpu=`uname -p`