mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +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
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.3.14
|
#### version: 0.3.15
|
||||||
#### Date: November 3 2008
|
#### Date: November 3 2008
|
||||||
########################################################################
|
########################################################################
|
||||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
#### 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)
|
## 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
|
# count the number of processors given
|
||||||
local cpu_core_count=$(grep -ic "cpu cores" /proc/cpuinfo| cut -d':' -f2)
|
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=''
|
local cpu_alpha_count='' core_count=''
|
||||||
|
|
||||||
if [[ $cpu_core_count -lt 2 ]]; then
|
if [[ $cpu_core_count -lt 2 ]]; then
|
||||||
|
@ -783,6 +786,8 @@ get_cpu_data()
|
||||||
if ($NF > max) { max = $NF }
|
if ($NF > max) { max = $NF }
|
||||||
cpu[nr, "speed"] = $NF
|
cpu[nr, "speed"] = $NF
|
||||||
}
|
}
|
||||||
|
## this is for PS3 only, Cell cpus
|
||||||
|
/^clock/ { cpu[nr, "speed"] = $NF }
|
||||||
|
|
||||||
/^cache size/ { cpu[nr, "cache"] = $NF }
|
/^cache size/ { cpu[nr, "cache"] = $NF }
|
||||||
|
|
||||||
|
@ -1241,6 +1246,7 @@ get_networking_data()
|
||||||
usePorts=""
|
usePorts=""
|
||||||
if (eth[i]>1) {
|
if (eth[i]>1) {
|
||||||
a[j]=eth[i]"x "i
|
a[j]=eth[i]"x "i
|
||||||
|
## note: this loses the plural ports case, is it needed anyway?
|
||||||
if (ports[i] != "") {
|
if (ports[i] != "") {
|
||||||
usePorts=ports[i]
|
usePorts=ports[i]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue