scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit bc785d69826def5c3cc00f91974a4464019f9bcd
parent df521a32f92d48cc555e19dc5aeeba56558838eb
Author: Willy Goiffon <w.goiffon@gmail.com>
Date:   Tue Nov 19 08:40:39 +0100

improved the /proc/cpuinfo parser

Diffstat:
info.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/info.sh b/info.sh @@ -22,7 +22,8 @@ f1=$'\e[1;37m' f2=$'\e[0;37m' kernel=$(uname -rmo) -cpuspe=$(grep 'model name' /proc/cpuinfo| sed 1q|sed 's/^.*:\ *//') +#cpuspe=$(grep 'model name' /proc/cpuinfo| sed 1q|sed 's/^.*:\ *//') +cpuspe=$(sed -n '/model\ name/s/^.*:\ //p' /proc/cpuinfo | uniq) #system=$(lsb_release -d | sed 's/^.*:\s*//') system=$(cat /etc/issue|cut -d\\ -f1)