mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added nouveau gpu to sensors
This commit is contained in:
parent
d8c2368418
commit
d1a47c3168
8
inxi
8
inxi
|
@ -3,7 +3,7 @@
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.7.12
|
#### version: 1.7.12
|
||||||
#### Date: June 24 2011
|
#### Date: June 24 2011
|
||||||
#### Patch Number: 00
|
#### Patch Number: 01
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -3515,7 +3515,7 @@ get_gpu_temp_data()
|
||||||
gpuTemp=""
|
gpuTemp=""
|
||||||
separator=""
|
separator=""
|
||||||
}
|
}
|
||||||
/^radeon-/ {
|
/^(radeon-|nouveau-)/ {
|
||||||
while ( getline && !/^$/ ) {
|
while ( getline && !/^$/ ) {
|
||||||
if ( /^temp/ ) {
|
if ( /^temp/ ) {
|
||||||
sub(/^[[:alnum:]]*.*:/, "", $0 ) # clear out everything to the :
|
sub(/^[[:alnum:]]*.*:/, "", $0 ) # clear out everything to the :
|
||||||
|
@ -4536,7 +4536,7 @@ get_networking_local_ip_data()
|
||||||
fi
|
fi
|
||||||
if [[ -n "$ip_tool_command" ]];then
|
if [[ -n "$ip_tool_command" ]];then
|
||||||
if [[ $ip_tool == 'ifconfig' ]];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
|
# 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
|
# of each IF record item. Also getting rid of the unneeded numeric line starters, now it can be parsed
|
||||||
# like ifconfig more or less
|
# like ifconfig more or less
|
||||||
|
@ -5391,7 +5391,7 @@ get_sensors_data()
|
||||||
tempWorkingUnit=""
|
tempWorkingUnit=""
|
||||||
}
|
}
|
||||||
# new data arriving: gpu temp in sensors, have to skip that
|
# new data arriving: gpu temp in sensors, have to skip that
|
||||||
/^radeon-/ {
|
/^(radeon-|nouveau-)/ {
|
||||||
while ( getline && !/^$/ ) {
|
while ( getline && !/^$/ ) {
|
||||||
# do nothing, just skip it
|
# do nothing, just skip it
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue