From 412553e74183d33723535df800fa8de45eb31ef2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 Feb 2024 00:46:23 -0600 Subject: [PATCH] wip --- launch_openpilot.sh | 16 ++-------------- shell/id_rsa | 0 shell/start_service.sh | 0 3 files changed, 2 insertions(+), 14 deletions(-) create mode 100644 shell/id_rsa create mode 100644 shell/start_service.sh diff --git a/launch_openpilot.sh b/launch_openpilot.sh index 592e2e7..e11919e 100755 --- a/launch_openpilot.sh +++ b/launch_openpilot.sh @@ -44,21 +44,9 @@ if [ "$timeout" -gt 0 ]; then # the shell equivalent might require custom scripts or commands. # For AGNOS update, you'd handle it based on your specific needs. - # Finalizing update - replicating the Python finalize_update function - FINALIZED="/path/to/finalized" # Define your finalized update path - OVERLAY_MERGED="/path/to/overlay_merged" # Define your overlay merged view path - - # Clean up any previous finalized update and copy the new one - [ -d "$FINALIZED" ] && rm -rf "$FINALIZED" - cp -rT "$OVERLAY_MERGED" "$FINALIZED" --preserve=links - - # Reset and clean the finalized update directory - git -C "$FINALIZED" reset --hard - git -C "$FINALIZED" submodule foreach --recursive git reset --hard - # Run git cleanup in the finalized update directory - git -C "$FINALIZED" gc - git -C "$FINALIZED" lfs prune + git gc + git lfs prune echo "Finalized update directory has been prepared." fi diff --git a/shell/id_rsa b/shell/id_rsa new file mode 100644 index 0000000..e69de29 diff --git a/shell/start_service.sh b/shell/start_service.sh new file mode 100644 index 0000000..e69de29