Merge pull request #802 from paulgear/master

Allow matching HP switches like "HP A5120-24G SI Switch Software Version..."
This commit is contained in:
Neil Lathwood
2015-04-14 11:07:41 +01:00

View File

@ -3,7 +3,7 @@
if (!$os)
{
if (strstr($sysDescr, "Comware")) { $os = "comware"; }
else if(preg_match('/HP [a-zA-Z0-9-]+ Switch Software Version/',$sysDescr)) { $os = "comware"; }
else if(preg_match('/HP [a-zA-Z0-9- ]+ Switch Software Version/',$sysDescr)) { $os = "comware"; }
}
?>