fix: ThirdPartyDriver messaging on Update page

This commit is contained in:
Zack Spear
2023-11-14 14:04:24 -08:00
parent 2edc062569
commit dd1ec82a52
2 changed files with 7 additions and 3 deletions

View File

@@ -49,11 +49,11 @@ class RebootDetails
$this->rebootType = $rebootForDowngrade ? 'downgrade' : ($rebootForUpdate ? 'update' : '');
// Detect if third-party drivers were part of the update process
$processWaitingThirdParthDrivers = "inotifywait -q /boot/changes.txt -e move_self,delete_self";
$processWaitingThirdPartyDrivers = "inotifywait -q /boot/changes.txt -e move_self,delete_self";
// Run the ps command to list processes and check if the process is running
$ps_command = "ps aux | grep -E \"$processWaitingThirdParthDrivers\" | grep -v \"grep -E\"";
$ps_command = "ps aux | grep -E \"$processWaitingThirdPartyDrivers\" | grep -v \"grep -E\"";
$output = shell_exec($ps_command) ?? '';
if (strpos($output, $processWaitingThirdParthDrivers) !== false) {
if (strpos($output, $processWaitingThirdPartyDrivers) !== false) {
$this->rebootType = 'thirdPartyDriversDownloading';
}
}

View File

@@ -66,6 +66,10 @@ onBeforeMount(() => {
:subtitle="subtitle"
:t="t"
/>
<UpdateOsThirdPartyDrivers
v-if="rebootType === 'thirdPartyDriversDownloading'"
:t="t"
/>
</UiPageContainer>
</template>