From da1aa2704603fc15d1a6bbbe1d603c15b6be0cf5 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 6 Sep 2021 13:48:19 -0700 Subject: [PATCH] updated: log successful update swap (#22144) --- selfdrive/updated.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/updated.py b/selfdrive/updated.py index cad3275d7c..cbc2c387d6 100755 --- a/selfdrive/updated.py +++ b/selfdrive/updated.py @@ -347,6 +347,10 @@ def main(): if psutil.LINUX: proc.ionice(psutil.IOPRIO_CLASS_BE, value=7) + # Check if we just performed an update + if Path(os.path.join(STAGING_ROOT, "old_openpilot")).is_dir(): + cloudlog.event("update installed") + ov_lock_fd = open(LOCK_FILE, 'w') try: fcntl.flock(ov_lock_fd, fcntl.LOCK_EX | fcntl.LOCK_NB)