fix(plg): third party reboot detection

This commit is contained in:
Zack Spear
2023-11-15 16:02:38 -08:00
parent e79ac7122a
commit f2b9cb0478

View File

@@ -53,7 +53,7 @@ class RebootDetails
// Run the ps command to list processes and check if the process is running
$ps_command = "ps aux | grep -E \"$processWaitingThirdPartyDrivers\" | grep -v \"grep -E\"";
$output = shell_exec($ps_command) ?? '';
if (strpos($output, $processWaitingThirdPartyDrivers) !== false) {
if ($this->rebootType != '' && strpos($output, $processWaitingThirdPartyDrivers) !== false) {
$this->rebootType = 'thirdPartyDriversDownloading';
}
}