mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix coding style part 2
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (preg_match("/^SunOS/", $sysDescr))
|
||||
{
|
||||
$os = "solaris";
|
||||
list(,,$version) = explode (" ", $sysDescr);
|
||||
if ($version > "5.10") { $os = "opensolaris"; }
|
||||
if ($version > "5.10") {
|
||||
if (preg_match("/oi_/", $sysDescr)) { $os = "openindiana"; }
|
||||
if (!$os) {
|
||||
if (preg_match('/^SunOS/', $sysDescr)) {
|
||||
$os = 'solaris';
|
||||
list(,,$version) = explode(' ', $sysDescr);
|
||||
if ($version > '5.10') {
|
||||
$os = 'opensolaris';
|
||||
}
|
||||
|
||||
if ($version > '5.10') {
|
||||
if (preg_match('/oi_/', $sysDescr)) {
|
||||
$os = 'openindiana';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.42.2.1.1")) { $os = "solaris"; }
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.42.2.1.1')) {
|
||||
$os = 'solaris';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user