From b6794d72d3b7b8d38e609d064ac16ddb13823f09 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Thu, 2 Jul 2026 17:03:29 -0500 Subject: [PATCH] sorry ya'll --- launch_chffrplus.sh | 11 ++++++++++- launch_env.sh | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/launch_chffrplus.sh b/launch_chffrplus.sh index 1fa0fcb0c..5a4132538 100755 --- a/launch_chffrplus.sh +++ b/launch_chffrplus.sh @@ -54,7 +54,16 @@ function agnos_init { sudo rm -f /data/misc/display/color_cal/color_cal /data/misc/display/color_cal/source.sha256 # Check if AGNOS update is required - if [ $(< /VERSION) != "$AGNOS_VERSION" ]; then + AGNOS_CURRENT_VERSION="$(< /VERSION)" + AGNOS_UPDATE_REQUIRED=1 + for accepted_version in $AGNOS_ACCEPTED_VERSIONS; do + if [ "$AGNOS_CURRENT_VERSION" = "$accepted_version" ]; then + AGNOS_UPDATE_REQUIRED=0 + break + fi + done + + if [ "$AGNOS_UPDATE_REQUIRED" = "1" ]; then AGNOS_PY="$DIR/system/hardware/tici/agnos.py" MANIFEST="$DIR/system/hardware/tici/agnos.json" if $AGNOS_PY --verify $MANIFEST; then diff --git a/launch_env.sh b/launch_env.sh index 7e04f65ff..46d2b8b6a 100755 --- a/launch_env.sh +++ b/launch_env.sh @@ -24,6 +24,10 @@ if [ -z "$AGNOS_VERSION" ]; then export AGNOS_VERSION="12.8.18" fi +if [ -z "$AGNOS_ACCEPTED_VERSIONS" ]; then + export AGNOS_ACCEPTED_VERSIONS="$AGNOS_VERSION 12.8.17" +fi + export STAGING_ROOT="/data/safe_staging" # StarPilot variables (only available after StarPilot is installed to /data/openpilot)