diff options
author | Thomas Debesse <dev@illwieckz.net> | 2016-03-26 01:12:16 +0100 |
---|---|---|
committer | Thomas Debesse <dev@illwieckz.net> | 2016-03-26 01:28:36 +0100 |
commit | 3adec3aa7e6f9dea4e5f22831aa669fefcc752f9 (patch) | |
tree | 90c4879eff40ee51c407fff87c38beab88c4c33c | |
parent | 3b3838e2252a3813d95ddf84d755173452417752 (diff) |
remove annoying trademark/registered notices in cpu name
-rwxr-xr-x | sysinfo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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` |