This version is also detecting CPUs on Solaris.
This commit is contained in:
parent
276e721c7e
commit
4a682daaae
4
ppss.sh
4
ppss.sh
@ -585,6 +585,10 @@ init_vars () {
|
|||||||
MODEL=`system_profiler SPHardwareDataType | grep "Processor Name" | cut -d ":" -f 2`
|
MODEL=`system_profiler SPHardwareDataType | grep "Processor Name" | cut -d ":" -f 2`
|
||||||
SPEED=`system_profiler SPHardwareDataType | grep "Processor Speed" | cut -d ":" -f 2`
|
SPEED=`system_profiler SPHardwareDataType | grep "Processor Speed" | cut -d ":" -f 2`
|
||||||
log INFO "CPU: $MODEL $SPEED"
|
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"
|
||||||
else
|
else
|
||||||
log INFO "CPU: Cannot determine. Provide a patch for your arch!"
|
log INFO "CPU: Cannot determine. Provide a patch for your arch!"
|
||||||
log INFO "Arch is $ARCH"
|
log INFO "Arch is $ARCH"
|
||||||
|
Loading…
Reference in New Issue
Block a user