mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Fix coding style part 2
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.30155.23.1")) { $os = "openbsd"; } # snmpd
|
||||
if (preg_match("/OpenBSD/", $sysDescr)) { $os = "openbsd"; } # Net-SNMP
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.30155.23.1')) {
|
||||
$os = 'openbsd';
|
||||
} //end if
|
||||
if (preg_match('/OpenBSD/', $sysDescr)) {
|
||||
$os = 'openbsd';
|
||||
} //end if
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user