added nouveau gpu to sensors

This commit is contained in:
inxi-svn 2011-06-25 03:53:31 +00:00
parent d8c2368418
commit d1a47c3168

8
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### version: 1.7.12
#### Date: June 24 2011
#### Patch Number: 00
#### Patch Number: 01
########################################################################
#### SPECIAL THANKS
########################################################################
@ -3515,7 +3515,7 @@ get_gpu_temp_data()
gpuTemp=""
separator=""
}
/^radeon-/ {
/^(radeon-|nouveau-)/ {
while ( getline && !/^$/ ) {
if ( /^temp/ ) {
sub(/^[[:alnum:]]*.*:/, "", $0 ) # clear out everything to the :
@ -4536,7 +4536,7 @@ get_networking_local_ip_data()
fi
if [[ -n "$ip_tool_command" ]];then
if [[ $ip_tool == 'ifconfig' ]];then
ip_tool_data="$( ifconfig )"
ip_tool_data="$( $ip_tool_command )"
# note, ip addr does not have proper record separation, so creating new lines explicitly here at start
# of each IF record item. Also getting rid of the unneeded numeric line starters, now it can be parsed
# like ifconfig more or less
@ -5391,7 +5391,7 @@ get_sensors_data()
tempWorkingUnit=""
}
# new data arriving: gpu temp in sensors, have to skip that
/^radeon-/ {
/^(radeon-|nouveau-)/ {
while ( getline && !/^$/ ) {
# do nothing, just skip it
}