From 6037e4002f0073f86e2d4525df0ae266f8b35254 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 4 Nov 2008 04:01:02 +0000 Subject: [PATCH] trying to get ps3 to show some basic output --- inxi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index abd9a5d..96355b4 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.3.14 +#### version: 0.3.15 #### Date: November 3 2008 ######################################################################## #### inxi is a fork of infobash, the original bash sys info script by locsmif @@ -734,6 +734,9 @@ get_cpu_core_count() ## Because of the upcoming release of cpus with core counts over 6, a count of cores is given after Deca (10) # count the number of processors given local cpu_core_count=$(grep -ic "cpu cores" /proc/cpuinfo| cut -d':' -f2) + if [ -z "$cpu_core_count" ];then + cpu_core_count=$(grep -ic "^processor" /proc/cpuinfo| cut -d':' -f2) + fi local cpu_alpha_count='' core_count='' if [[ $cpu_core_count -lt 2 ]]; then @@ -783,6 +786,8 @@ get_cpu_data() if ($NF > max) { max = $NF } cpu[nr, "speed"] = $NF } + ## this is for PS3 only, Cell cpus + /^clock/ { cpu[nr, "speed"] = $NF } /^cache size/ { cpu[nr, "cache"] = $NF } @@ -1241,6 +1246,7 @@ get_networking_data() usePorts="" if (eth[i]>1) { a[j]=eth[i]"x "i + ## note: this loses the plural ports case, is it needed anyway? if (ports[i] != "") { usePorts=ports[i] }