added ps fan support, and more fine tuning

This commit is contained in:
inxi-svn 2009-07-27 21:49:25 +00:00
parent d1b260fff6
commit 02cac9a478

10
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.0.92-b1
#### version: 1.0.93-b1
#### Date: 27 July 2009
########################################################################
#### SPECIAL THANKS
@ -4056,7 +4056,8 @@ print_partition_data()
print_sensors_data()
{
eval $LOGFS
local mobo_temp='' cpu_temp='' cpu_fan='' sys_fan1='' sys_fan2='' sys_fan3='' sensors_data=''
local mobo_temp='' cpu_temp='' cpu_fan='' sys_fan1='' sys_fan2='' sys_fan3=''
local ps_fan='' sensors_data=''
get_sensors_data
# initial error cases, for missing app or unconfigured sensors
@ -4097,8 +4098,11 @@ print_sensors_data()
if [[ -n ${A_SENSORS_DATA[5]} ]];then
sys_fan3="${C1}Sys Fan3:${C2} ${A_SENSORS_DATA[5]}rpm "
fi
if [[ -n ${A_SENSORS_DATA[6]} ]];then
ps_fan="${C1}PS Fan:${C2} ${A_SENSORS_DATA[6]}rpm "
fi
fi
sensors_data="$mobo_temp$cpu_temp$cpu_fan$sys_fan1$sys_fan2$sys_fan3"
sensors_data="$mobo_temp$cpu_temp$cpu_fan$sys_fan1$sys_fan2$sys_fan3$ps_fan"
sensors_data=$( create_print_line "Sensors:" "$sensors_data" )
print_screen_output "$sensors_data"
eval $LOGFE