Include external shutdown trigger

This commit is contained in:
hawkeyexp 2018-08-03 01:42:18 +02:00
parent 8fbdd32abb
commit 84f7fafe3a

View File

@ -565,6 +565,10 @@ void f1x::openauto::autoapp::ui::MainWindow::showTime()
} }
} }
} }
QFileInfo externalExitFile("/tmp/external_exit");
if (externalExitFile.exists()) {
f1x::openauto::autoapp::ui::MainWindow::MainWindow::exit();
}
} }
ui_->Digital_clock->setText(time_text); ui_->Digital_clock->setText(time_text);
@ -580,5 +584,3 @@ void f1x::openauto::autoapp::ui::MainWindow::showTime()
} }
}**/ }**/
} }