From da493a9e50a96622c73cd6e1db84415764303200 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Fri, 30 May 2025 11:24:45 -0500 Subject: [PATCH] Revert "Update launch_chffrplus.sh" This reverts commit b4d070fbd58fe245be2ae7e1814589e0cfec1ad3. --- launch_chffrplus.sh | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/launch_chffrplus.sh b/launch_chffrplus.sh index 9135e14adb..9256f463af 100755 --- a/launch_chffrplus.sh +++ b/launch_chffrplus.sh @@ -1,13 +1,9 @@ #!/usr/bin/bash - if [ -z "$BASEDIR" ]; then BASEDIR="/data/openpilot" fi -# One-time setup flag (reset on each overlay install) -ONCE_FLAG_FILE="/data/openpilot/.one_time_setup_done" - source "$BASEDIR/launch_env.sh" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" @@ -35,22 +31,6 @@ function agnos_init { fi } -function one_time_setup { - if [ ! -f "$ONCE_FLAG_FILE" ]; then - echo "Performing one-time setup tasks..." - - # Run once: - echo "Wiping old params..." - rm /data/params/d/DongleId - rm /data/params/d/StockDongleId - echo "Old params wiped." - - touch "$ONCE_FLAG_FILE" - else - echo "One-time setup already completed. Skipping." - fi -} - function launch { # Remove orphaned git lock if it exists on boot [ -f "$DIR/.git/index.lock" ] && rm -f $DIR/.git/index.lock @@ -112,6 +92,4 @@ function launch { while true; do sleep 1; done } -one_time_setup - launch