Added basic detection for Mellanox devices

This commit is contained in:
laf
2015-06-27 22:52:01 +01:00
parent aed0fedf02
commit 116a64deb9
4 changed files with 25 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
<?php
if (stristr($poll_device['sysDescr'], "Linux")) {
list(,,$version,$hardware) = explode(' ', $poll_device['sysDescr']);
} else {
list($hardware,,$version) = explode(',',$poll_device['sysDescr']);
$hardware = preg_replace("/Mellanox /","", $hardware);
}