diff --git a/lib/OperatingSystems/DefaultOs.php b/lib/OperatingSystems/DefaultOs.php index 2d331fab..cbe69691 100644 --- a/lib/OperatingSystems/DefaultOs.php +++ b/lib/OperatingSystems/DefaultOs.php @@ -92,10 +92,19 @@ public function getCpuName(): string { $result = preg_match_all($pattern, $cpuinfo, $matches); if ($result === 0 || $result === false) { - return $data; + // For Raspberry Pi 4B + $pattern = '/Model\s+:\s(.+)/'; + $result = preg_match_all($pattern, $cpuinfo, $matches); + if ($result === 0 || $result === false) { + return $data; + } } $model = $matches[1][0]; + + $pattern = '/processor\s+:\s(.+)/'; + + $result = preg_match_all($pattern, $cpuinfo, $matches); $cores = count($matches[1]); if ($cores === 1) {