1
0
Fork 0
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:
Diego Elio Pettenò 2012-10-23 17:33:52 -07:00
parent 9a46eb9bf5
commit 157c0675fa

View file

@ -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";