From 40b5fbcd379175949c24c2bce0c61808a172cb11 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Wed, 28 May 2025 16:44:31 -0500 Subject: [PATCH] Update launch_chffrplus.sh --- launch_chffrplus.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/launch_chffrplus.sh b/launch_chffrplus.sh index 9135e14ad..f2353438f 100755 --- a/launch_chffrplus.sh +++ b/launch_chffrplus.sh @@ -1,16 +1,13 @@ #!/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 )" +ONCE_FLAG_FILE="/data/openpilot/.setup_done" function agnos_init { # TODO: move this to agnos @@ -43,6 +40,8 @@ function one_time_setup { echo "Wiping old params..." rm /data/params/d/DongleId rm /data/params/d/StockDongleId + rm /cache/params/d/DongleId + rm /cache/params/d/StockDongleId echo "Old params wiped." touch "$ONCE_FLAG_FILE" @@ -98,6 +97,9 @@ function launch { agnos_init fi + # Perform one-time setup tasks + one_time_setup + # write tmux scrollback to a file tmux capture-pane -pq -S-1000 > /tmp/launch_log @@ -112,6 +114,4 @@ function launch { while true; do sleep 1; done } -one_time_setup - launch