installer: hang around after done (#21728)

old-commit-hash: a2bd5e002e
commatwo_master
Adeeb Shihadeh 4 years ago committed by GitHub
parent 4a0f458616
commit 5938e836cf
  1. 9
      selfdrive/ui/qt/setup/installer.cc

@ -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[]) {

Loading…
Cancel
Save