mirror of
https://github.com/unraid/webgui.git
synced 2026-05-04 08:49:47 -05:00
Merge pull request #2442 from SimonFair/Fix-is_intel_cpu-function-to-catch-additional-devices
Fix for systems not reporting correctly in DMI.
This commit is contained in:
@@ -565,10 +565,8 @@ function dmidecode($key, $n, $all=true) {
|
||||
}
|
||||
|
||||
function is_intel_cpu() {
|
||||
$cpu = dmidecode('Processor Information','4',0);
|
||||
$cpu_vendor = $cpu['Manufacturer'] ?? "";
|
||||
$is_intel_cpu = stripos($cpu_vendor, "intel") !== false ? true : false;
|
||||
return $is_intel_cpu;
|
||||
$cpu_vendor_check = exec("grep -Pom1 '^model name\s+:\s*\K.+' /proc/cpuinfo") ?? "";
|
||||
return stripos($cpu_vendor_check, "intel") !== false;
|
||||
}
|
||||
|
||||
// Load saved PCI data
|
||||
|
||||
Reference in New Issue
Block a user