From ee2ec6c7f90a6415b63186ee4b0cb248db990cf4 Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 21 Jun 2016 19:42:16 +0100 Subject: [PATCH] Updated to use sysDescr --- includes/discovery/os/macosx.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/os/macosx.inc.php b/includes/discovery/os/macosx.inc.php index 7ec168a585..486b6b1ed1 100644 --- a/includes/discovery/os/macosx.inc.php +++ b/includes/discovery/os/macosx.inc.php @@ -11,7 +11,7 @@ */ if (!$os) { if (strpos($sysObjectId, '1.3.6.1.4.1.8072.3.2.16') !== false || - strpos($sysObjectId, '1.3.6.1.4.1.8072.3.2.255') !== false) { + preg_match('/Darwin Kernel Version 15/', $sysDescr)) { $os = 'macosx'; } }