fix d-link switch detection

git-svn-id: http://www.observium.org/svn/observer/trunk@1384 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-07-17 17:30:28 +00:00
parent 0fc7c6d32e
commit 6bc96ad888
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?php
if (!$os) {
if (preg_match("/D-Link DES-/", $sysDescr)) { $os = "dlink"; }
else if (preg_match("/Dlink DES-/", $sysDescr)) { $os = "dlink"; }
else if (preg_match("/^DES-/", $sysDescr)) { $os = "dlink"; }
else if (preg_match("/^DGS-/", $sysDescr)) { $os = "dlink"; }
}
?>