mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-08 07:02:06 +08:00
sorry ya'll
This commit is contained in:
+10
-1
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user