3 --- node/node.d/hddtemp_smartctl.in.orig 2005-01-29 22:14:02.000000000 +0000
4 +++ node/node.d/hddtemp_smartctl.in
5 @@ -93,6 +93,10 @@ if ($^O eq 'linux') {
7 } elsif ($^O eq 'solaris') {
8 @drives = map { s@.*/@@ } glob '/dev/rdsk/c*t*d*s2';
9 +} elsif ($^O eq 'netbsd') {
10 + my $rawpart = chr(`sysctl -n kern.rawpartition` + 97); # 'c' or 'd'
11 + @drives = map { $_ . $rawpart } grep { /^wd/ } split ' ',
12 + `sysctl -n hw.disknames`;
15 @drives = split ' ', $ENV{drives} if exists $ENV{drives};