sorry ya'll

This commit is contained in:
firestar5683
2026-07-02 17:03:29 -05:00
parent ea2aa532af
commit b6794d72d3
2 changed files with 14 additions and 1 deletions
+10 -1
View File
@@ -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
+4
View File
@@ -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)