Skip to content

Commit

Permalink
Improve system messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jorikfon committed May 16, 2024
1 parent 564466a commit 930e86b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/System/PBXRecovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ private function handleInput(string $input)
// Prepare for reinstalling
file_put_contents('/tmp/ejectcd', '');
$pbx_firmwarePath = Util::which('pbx_firmware');
passthru("{$pbx_firmwarePath} /offload/firmware.img.gz {$this->DEVICE}");
$recovery_cmd = 'exec < /dev/console > /dev/console 2>/dev/console;' .
"{$pbx_firmwarePath} /offload/firmware.img.gz {$this->DEVICE}";
passthru($recovery_cmd);
break;
case '3':
// Cancel operation
Expand Down
1 change: 1 addition & 0 deletions src/Core/System/RootFS/sbin/mountoffload
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ for disk in $disks; do
# Check for the presence of a "livecd" flag file in the root of the offload disk.
if [ -f /offload/livecd ]; then
echo " - Found LiveCD image!"
echo
echo " Press any key within 30 seconds to boot from LiveCD..."
read -t 30 -n 1 input
if [ $? = 0 ]; then
Expand Down

0 comments on commit 930e86b

Please sign in to comment.