mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Merge pull request #9 from manuelschneider/ahci-hddtemp_smartctl
support for 'adaX' and 'daX' devices
This commit is contained in:
commit
c81d26303a
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user