freebsd-ports/sysutils/munin-common/files/patch-plugins_node.d_hddtemp__smartctl.in
Mathieu Arnold 2ff6de7ee9 Fix the bind9_rndc plugin wrt Perl 5.18+ hash randomzation.
While there, group all patches for the three ports in munin-common, and remove
an obsolete patch.

PR:		195689
Submitted by:	Vlad "Blackflow" K.
Sponsored by:	Absolight
2014-12-10 15:52:14 +00:00

11 lines
419 B
Text

--- plugins/node.d/hddtemp_smartctl.in.orig 2014-11-24 21:46:24 UTC
+++ plugins/node.d/hddtemp_smartctl.in
@@ -162,7 +162,7 @@ if ($^O eq 'linux') {
} elsif ($^O eq 'freebsd') {
opendir(DEV, '/dev');
- @drives = grep /^ad[0-9]+$/, readdir DEV;
+ @drives = grep /^ad[0-9]+$|^ada[0-9]+$/, readdir DEV;
closedir(DEV);
} elsif ($^O eq 'solaris') {
@drives = map { s@.*/@@ ; $_ } glob '/dev/rdsk/c*t*d*s2';