fix(plg): third party reboot detection

This commit is contained in:
Zack Spear
2023-11-20 18:04:05 -08:00
parent aaff2825d2
commit 0fb71bc3b6
@@ -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';
}
}