mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
fine tuned sys/chassis fan settings
This commit is contained in:
parent
dc925cd8b2
commit
6df6c9dd6b
5
inxi
5
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.0.103-b1
|
#### version: 1.0.104-b1
|
||||||
#### Date: 28 July 2009
|
#### Date: 28 July 2009
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -3109,7 +3109,8 @@ local sample="
|
||||||
/^FAN([2-9]) Speed:|CHASSIS([2-9]) FAN Speed:/ {
|
/^FAN([2-9]) Speed:|CHASSIS([2-9]) FAN Speed:/ {
|
||||||
sysFanNu=gensub( /(FAN|CHASSIS)([2-9])( FAN)? Speed:/, "\\2", 1, $0 )
|
sysFanNu=gensub( /(FAN|CHASSIS)([2-9])( FAN)? Speed:/, "\\2", 1, $0 )
|
||||||
if ( sysFanNu ~ /([2-9])/ ) {
|
if ( sysFanNu ~ /([2-9])/ ) {
|
||||||
sysFanNu = sysFanNu + 3
|
# note: cpu/mobo/ps/fan1 above are 1/2/3/4
|
||||||
|
sysFanNu = sysFanNu + 4
|
||||||
if ( $2 == "Speed:" ) {
|
if ( $2 == "Speed:" ) {
|
||||||
aFanReal[sysFanNu]=$3
|
aFanReal[sysFanNu]=$3
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue