refactor: Updated os discovery files (a) (#4514)

This commit is contained in:
Neil Lathwood
2016-09-21 18:53:39 +01:00
committed by Tony Murray
parent 369bfaf508
commit 24fe69be3d
26 changed files with 97 additions and 180 deletions

View File

@@ -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';
}