mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
sensorz.pl: adds support for APU2 cpu and hexidecimal PCI numbers
Signed-off-by: Jed Reynolds <jreynolds@candelatech.com>
This commit is contained in:
@@ -14,8 +14,11 @@ for my $line (@sensor_lines) {
|
|||||||
next if ($line =~ /^\s*$/);
|
next if ($line =~ /^\s*$/);
|
||||||
chomp $line;
|
chomp $line;
|
||||||
if ($line =~ /^[^: ]+$/) {
|
if ($line =~ /^[^: ]+$/) {
|
||||||
($::device) = $line =~ /^(.*?-\d+)$/;
|
($::device) = $line =~ /^(.*?-[\da-f]+)$/;
|
||||||
next if ($line !~ /^(mt7915_|ath10k_hwmon-pci|physical|coretemp|Core )/);
|
if (!(defined $::device)) {
|
||||||
|
print STDOUT "not a device? [$line]\n";
|
||||||
|
}
|
||||||
|
next if ($line !~ /^(k10temp-pci|mt7915_|ath10k_hwmon-pci|physical|coretemp|Core )/);
|
||||||
if ( !defined $::sensor_readings{$::device}) {
|
if ( !defined $::sensor_readings{$::device}) {
|
||||||
$::sensor_readings{$::device} = 0;
|
$::sensor_readings{$::device} = 0;
|
||||||
push(@::sensor_devices, $::device);
|
push(@::sensor_devices, $::device);
|
||||||
|
|||||||
Reference in New Issue
Block a user