diff --git a/launch_chffrplus.sh b/launch_chffrplus.sh index f2353438f..9256f463a 100755 --- a/launch_chffrplus.sh +++ b/launch_chffrplus.sh @@ -7,7 +7,6 @@ fi 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 @@ -32,24 +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 - rm /cache/params/d/DongleId - rm /cache/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 @@ -97,9 +78,6 @@ 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