Revert "Update launch_chffrplus.sh"

This reverts commit b4d070fbd58fe245be2ae7e1814589e0cfec1ad3.
This commit is contained in:
firestar5683
2025-05-30 11:24:45 -05:00
parent 6921b3bd11
commit da493a9e50
-22
View File
@@ -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