mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
hwmon: fix autoconf when only one hwmon device is present.
This commit is contained in:
parent
9a46eb9bf5
commit
157c0675fa
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ my $classdir = '/sys/class/hwmon';
|
|||
my @devdirs = <$classdir/hwmon*>;
|
||||
|
||||
if ( defined $ARGV[0] and $ARGV[0] eq 'autoconf' ) {
|
||||
if ( scalar(@devdirs) > 1 ) {
|
||||
if ( scalar(@devdirs) > 0 ) {
|
||||
print "yes\n";
|
||||
} else {
|
||||
print "no (no hwmon device found)\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue