fine tuned sys/chassis fan settings

This commit is contained in:
inxi-svn 2009-07-28 19:57:07 +00:00
parent dc925cd8b2
commit 6df6c9dd6b

5
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.0.103-b1
#### version: 1.0.104-b1
#### Date: 28 July 2009
########################################################################
#### SPECIAL THANKS
@ -3109,7 +3109,8 @@ local sample="
/^FAN([2-9]) Speed:|CHASSIS([2-9]) FAN Speed:/ {
sysFanNu=gensub( /(FAN|CHASSIS)([2-9])( FAN)? Speed:/, "\\2", 1, $0 )
if ( sysFanNu ~ /([2-9])/ ) {
sysFanNu = sysFanNu + 3
# note: cpu/mobo/ps/fan1 above are 1/2/3/4
sysFanNu = sysFanNu + 4
if ( $2 == "Speed:" ) {
aFanReal[sysFanNu]=$3
}