mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Updated os discovery files (a) (#4514)
This commit is contained in:
committed by
Tony Murray
parent
369bfaf508
commit
24fe69be3d
@@ -1,11 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (preg_match('/^Avocent/', $sysDescr)) {
|
||||
$os = 'avocent';
|
||||
}
|
||||
|
||||
if (preg_match('/^AlterPath/', $sysDescr)) {
|
||||
$os = 'avocent';
|
||||
}
|
||||
if (starts_with($sysDescr, array('Avocent', 'AlterPath'))) {
|
||||
$os = 'avocent';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user