mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 00:47:47 +00:00
trying to get ps3 to show some basic output
This commit is contained in:
parent
37a0e55b57
commit
6037e4002f
8
inxi
8
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]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue