mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 07:00:31 -04:00
- Add support for ada disk devices to hddtemp_smartctl [2] - Add a patch for upstream bug 1251 to prevent huge munin-graph.log files PR: ports/171116 [1] PR: ports/169287 [2] Submitted by: mm [1], TAKEMON Takashi <takemon@bamboogate.co.jp> [2]
11 lines
468 B
Text
11 lines
468 B
Text
--- plugins/node.d/hddtemp_smartctl.in.orig 2012-09-11 11:26:15.928249255 +0200
|
|
+++ plugins/node.d/hddtemp_smartctl.in 2012-09-11 11:26:48.947249274 +0200
|
|
@@ -151,7 +151,7 @@
|
|
# without probing them.
|
|
} 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';
|