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:
parent
c34d4d1f66
commit
515a03e791
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user