trying to get ps3 to show some basic output

This commit is contained in:
inxi-svn 2008-11-04 04:01:02 +00:00
parent 37a0e55b57
commit 6037e4002f

8
inxi
View file

@ -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]
}