b99437cd9c
Use REPLACE_PERL on all plugins Adjust sensors_ to work with NetBSD 3 Bump PKGREVISION
15 lines
554 B
Text
15 lines
554 B
Text
$NetBSD: patch-ae,v 1.1 2006/07/21 23:28:37 abs Exp $
|
|
|
|
--- node/node.d/hddtemp_smartctl.in.orig 2005-01-29 22:14:02.000000000 +0000
|
|
+++ node/node.d/hddtemp_smartctl.in
|
|
@@ -93,6 +93,10 @@ if ($^O eq 'linux') {
|
|
}
|
|
} elsif ($^O eq 'solaris') {
|
|
@drives = map { s@.*/@@ } glob '/dev/rdsk/c*t*d*s2';
|
|
+} elsif ($^O eq 'netbsd') {
|
|
+ my $rawpart = chr(`sysctl -n kern.rawpartition` + 97); # 'c' or 'd'
|
|
+ @drives = map { $_ . $rawpart } grep { /^wd/ } split ' ',
|
|
+ `sysctl -n hw.disknames`;
|
|
}
|
|
|
|
@drives = split ' ', $ENV{drives} if exists $ENV{drives};
|