Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / munin-node / patches / patch-ae
blob20e8efc1494049f9d2532b9a9df34f3ea9c3333b
1 $NetBSD$
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') {
6    }
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`;
13  }
15  @drives = split ' ', $ENV{drives} if exists $ENV{drives};