tFixed a weird issue from /proc/cpuinfo where cpu appears twice under to "different" strings - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 5d94854fa4849e3bbf4369671263e49c02bf4e7e
(DIR) parent 732d6ffb84c4735eee0383f5c58917052573c175
(HTM) Author: Willy Goiffon <w.goiffon@gmail.com>
Date: Tue, 1 Oct 2013 08:22:04 +0200
Fixed a weird issue from /proc/cpuinfo where cpu appears twice under to "different" strings
Diffstat:
M info.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/info.sh b/info.sh
t@@ -22,7 +22,7 @@ f1=$'\e[1;37m'
f2=$'\e[0;37m'
kernel=$(uname -rmo)
-cpuspe=$(grep 'model name' /proc/cpuinfo| uniq| sed 's/^.*:\ *//')
+cpuspe=$(grep 'model name' /proc/cpuinfo| sed 1q|sed 's/^.*:\ *//')
system=$(lsb_release -d | sed 's/^.*:\s*//')