From 006ef061c2704fd0b66721fa8a35b6d7a408c86a Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Thu, 19 Jan 2012 18:44:17 +0100 Subject: [PATCH] support for 'adaX' and 'daX' devices --- plugins/other/hddtemp_smartctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/other/hddtemp_smartctl b/plugins/other/hddtemp_smartctl index 9c73668f..f5c61f7f 100755 --- a/plugins/other/hddtemp_smartctl +++ b/plugins/other/hddtemp_smartctl @@ -139,7 +139,7 @@ if ($^O eq 'linux') { # without probing them. } elsif ($^O eq 'freebsd') { opendir(DEV, '/dev'); - @drives = grep /^ad[0-9]+$/, readdir DEV; + @drives = grep /^(a?da|ad)[0-9]+$/, readdir DEV; closedir(DEV); } elsif ($^O eq 'solaris') { @drives = map { s@.*/@@ ; $_ } glob '/dev/rdsk/c*t*d*s2';