Tony Murray 9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01:00

12 lines
293 B
PHP

<?php
if (!$os) {
if (strstr($sysDescr, 'Comware')) {
$os = 'comware';
} elseif (preg_match('/HP [a-zA-Z0-9- ]+ Switch Software Version/', $sysDescr)) {
$os = 'comware';
} elseif (strstr($sysObjectId, '.1.3.6.1.4.1.25506.11.1')) {
$os = 'comware';
}
}