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,12 +1,14 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
#if (strstr($sysDescr, "Neyland 24T")) { $os = "powerconnect"; } /* Powerconnect 5324 */
|
||||
if (stristr($sysDescr, "PowerConnect ")) { $os = "powerconnect"; }
|
||||
else if (preg_match("/Dell.*Gigabit\ Ethernet/i",$sysDescr)) { $os = "powerconnect"; }
|
||||
//PowerConnect 55xx
|
||||
else if (stristr(snmp_get($device, "1.3.6.1.4.1.674.10895.3000.1.2.100.1.0", "-Oqv", ""),"PowerConnect") ) { $os = "powerconnect";}
|
||||
if (!$os) {
|
||||
// if (strstr($sysDescr, "Neyland 24T")) { $os = "powerconnect"; } /* Powerconnect 5324 */
|
||||
if (stristr($sysDescr, 'PowerConnect ')) {
|
||||
$os = 'powerconnect';
|
||||
}
|
||||
else if (preg_match('/Dell.*Gigabit\ Ethernet/i', $sysDescr)) {
|
||||
$os = 'powerconnect';
|
||||
} //end if
|
||||
else if (stristr(snmp_get($device, '1.3.6.1.4.1.674.10895.3000.1.2.100.1.0', '-Oqv', ''), 'PowerConnect')) {
|
||||
$os = 'powerconnect';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user