Merge pull request #2729 from davehope/master

Create zyxelgs.inc.php
This commit is contained in:
Neil Lathwood
2016-01-10 16:29:18 +00:00
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -947,7 +947,7 @@ $config['os'][$os]['text'] = 'ZyXEL Prestige';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'zyxel';
$os = 'zyxeles';
$os = 'zynos';
$config['os'][$os]['text'] = 'ZyXEL Ethernet Switch';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'zyxel';
+5
View File
@@ -0,0 +1,5 @@
<?php
if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.890') && preg_match('/^(ES|GS)/', $sysDescr))
$os = 'zynos';
}
-7
View File
@@ -1,7 +0,0 @@
<?php
if (!$os) {
if (preg_match('/^ES-/', $sysDescr)) {
$os = 'zyxeles';
}
}