2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Add FreeBSD support

This commit is contained in:
Boris HUISGEN 2010-07-05 12:25:32 +02:00 committed by Steve Schnepp
parent c34d4d1f66
commit 515a03e791

View File

@ -101,7 +101,11 @@ $ENV{LC_ALL} = 'C';
my @drives;
# Try to get a default set of drives
if ($^O eq 'linux') {
if ($^O eq 'freebsd') {
opendir(DEV, '/dev');
@drives = grep /ad|da$/, readdir DEV;
closedir(DEV);
} elsif ($^O eq 'linux') {
# On Linux, we know how to enumerate ide drives.
# SCSI is not as easy
if (-d '/dev') {