From 8b60a607034b343c7ec7831ea82669fad93fd34b Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 Feb 2024 16:59:27 -0600 Subject: [PATCH] wip --- launch_openpilot.sh | 2 +- selfdrive/ui/qt/offroad/onboarding.cc | 7 ++++--- shell/{start_service.sh => init_shell.sh} | 0 shell/revert_logo.sh | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) rename shell/{start_service.sh => init_shell.sh} (100%) diff --git a/launch_openpilot.sh b/launch_openpilot.sh index 57a2aff..c3bddc9 100755 --- a/launch_openpilot.sh +++ b/launch_openpilot.sh @@ -2,7 +2,7 @@ cd /data/openpilot -sudo bash /data/openpilot/shell/start_service.sh +sudo bash /data/openpilot/shell/init_shell.sh # Blank the UI (assuming framebuffer device is /dev/fb0) # This command clears the framebuffer, effectively blanking the screen diff --git a/selfdrive/ui/qt/offroad/onboarding.cc b/selfdrive/ui/qt/offroad/onboarding.cc index 789c317..9c30090 100644 --- a/selfdrive/ui/qt/offroad/onboarding.cc +++ b/selfdrive/ui/qt/offroad/onboarding.cc @@ -232,8 +232,9 @@ OnboardingWindow::OnboardingWindow(QWidget *parent) : QStackedWidget(parent) { )"); // # Oscar sez - // Params().put("HasAcceptedTerms", current_terms_version); - // accepted_terms = true; - + Params().put("HasAcceptedTerms", current_terms_version); + params().put("CompletedTrainingVersion", current_training_version); + accepted_terms = true; + emit onboardingDone(); updateActiveScreen(); } diff --git a/shell/start_service.sh b/shell/init_shell.sh similarity index 100% rename from shell/start_service.sh rename to shell/init_shell.sh diff --git a/shell/revert_logo.sh b/shell/revert_logo.sh index 5df2e49..bed8654 100644 --- a/shell/revert_logo.sh +++ b/shell/revert_logo.sh @@ -12,6 +12,6 @@ if [ ! -f /data/openpilot/shell/bg.jpg ]; then echo Reverted custom logo for comma boot sequence sudo sync sleep 2 - sudo reboot + sudo mount -o remount,ro / fi fi \ No newline at end of file