mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +00:00
Add FreeBSD support
This commit is contained in:
parent
c34d4d1f66
commit
515a03e791
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue