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
|
||||
#### 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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue