mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
Minor fixes on developer key things
This commit is contained in:
parent
bffe882824
commit
61efc6ee45
1 changed files with 2 additions and 1 deletions
|
@ -494,7 +494,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
}
|
||||
|
||||
// If the DEVKEY file is present, install a developer key
|
||||
if(QFile::exists("/mnt/onboard/onboard/.inkbox/DEVKEY") == true && QFile::exists("/mnt/onboard/onboard/.inkbox/DEVKEY.dgst")) {
|
||||
if(QFile::exists("/mnt/onboard/onboard/.inkbox/DEVKEY") == true && QFile::exists("/mnt/onboard/onboard/.inkbox/DEVKEY.dgst") == true) {
|
||||
string_checkconfig_ro("/mnt/onboard/onboard/.inkbox/DEVKEY");
|
||||
QString developerKey = checkconfig_str_val.left(256);
|
||||
|
||||
|
@ -504,6 +504,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
args << "install_developer-key.sh" << developerKey << "/mnt/onboard/onboard/.inkbox/DEVKEY.dgst";
|
||||
QProcess *proc = new QProcess();
|
||||
proc->start(prog, args);
|
||||
proc->waitForFinished();
|
||||
|
||||
QFile::remove("/mnt/onboard/onboard/.inkbox/DEVKEY");
|
||||
QFile::remove("/mnt/onboard/onboard/.inkbox/DEVKEY.dgst");
|
||||
|
|
Loading…
Reference in a new issue