mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
Corrected some reboot functions
This commit is contained in:
parent
3a2c90794d
commit
f8decc2a5d
1 changed files with 2 additions and 10 deletions
|
@ -147,11 +147,7 @@ void generalDialog::on_okBtn_clicked()
|
|||
// We set a custom boot flag and reboot silently in Diagnostics
|
||||
string_writeconfig("/external_root/boot/flags/DIAGS_BOOT", "true");
|
||||
string_writeconfig("/external_root/boot/flags/DO_SOFT_RESET", "true");
|
||||
QString prog ("/sbin/reboot");
|
||||
QStringList args;
|
||||
QProcess *proc = new QProcess();
|
||||
proc->start(prog, args);
|
||||
proc->waitForFinished();
|
||||
reboot(false);
|
||||
}
|
||||
else {
|
||||
// Restore default settings, we're not on InkBox OS
|
||||
|
@ -172,11 +168,7 @@ void generalDialog::on_okBtn_clicked()
|
|||
string_writeconfig("/mnt/onboard/onboard/.inkbox/can_really_update", "true");
|
||||
string_writeconfig("/external_root/opt/update/will_update", "true");
|
||||
string_writeconfig("/external_root/boot/flags/WILL_UPDATE", "true");
|
||||
QString prog ("reboot");
|
||||
QStringList args;
|
||||
QProcess *proc = new QProcess();
|
||||
proc->start(prog, args);
|
||||
proc->waitForFinished();
|
||||
reboot(true);
|
||||
}
|
||||
if(usbmsDialog == true) {
|
||||
global::usbms::usbmsDialog = false;
|
||||
|
|
Loading…
Reference in a new issue