From 1253d66a4584cdb259d1cc637dd31b2ecfe09474 Mon Sep 17 00:00:00 2001 From: Louwrentius Date: Wed, 21 Oct 2009 21:23:36 +0000 Subject: [PATCH] This version is also detecting CPUs on Solaris. --- branches/distributed-ppss/ppss.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/branches/distributed-ppss/ppss.sh b/branches/distributed-ppss/ppss.sh index 6e897be..86dc0d3 100755 --- a/branches/distributed-ppss/ppss.sh +++ b/branches/distributed-ppss/ppss.sh @@ -587,8 +587,9 @@ init_vars () { log INFO "CPU: $MODEL $SPEED" elif [ "$ARCH" == "SunOS" ] then - CPU=`psrinfo -v | grep MHz | cut -d " " -f 4,8 | awk '{ printf ("Processor architecture: %s @ %s MHz.\n", $1,$2) }'` - log INFO "CPU: $CPU" + CPU=`psrinfo -v | grep MHz | cut -d " " -f 4,8 | awk '{ printf ("Processor architecture: %s @ %s MHz.\n", $1,$2) }' | head -n 1` + + log INFO "$CPU" else log INFO "CPU: Cannot determine. Provide a patch for your arch!" log INFO "Arch is $ARCH"