installer: hang around after done (#21728)

old-commit-hash: a2bd5e002e616e2cef30459120f3a8ad57a13060
This commit is contained in:
Adeeb Shihadeh
2021-07-26 17:13:48 -07:00
committed by GitHub
parent 4a0f458616
commit 5938e836cf
+7 -2
View File
@@ -150,10 +150,15 @@ void Installer::cloneFinished(int exitCode, QProcess::ExitStatus exitStatus) {
#endif
// write continue.sh
err = std::system("cp /data/openpilot/installer/continue_openpilot.sh " CONTINUE_PATH);
err = std::system("cp /data/openpilot/installer/continue_openpilot.sh /data/continue.sh.new");
assert(err == 0);
err = std::system("chmod +x /data/continue.sh.new");
assert(err == 0);
std::system("mv /data/continue.sh.new " CONTINUE_PATH);
assert(err == 0);
QCoreApplication::exit(0);
// wait for the installed software's UI to take over
QTimer::singleShot(60 * 1000, &QCoreApplication::quit);
}
int main(int argc, char *argv[]) {