From c3334f7fecb39c5c1a65f573126b024e41bf68fc Mon Sep 17 00:00:00 2001 From: Alex Martian Date: Wed, 13 Dec 2023 04:23:10 +0000 Subject: [PATCH] changed log of times to suspend/resume to include previous events (via adding --append to tee) --- systemd_on_resume_config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/systemd_on_resume_config.sh b/systemd_on_resume_config.sh index 408854a..3600058 100755 --- a/systemd_on_resume_config.sh +++ b/systemd_on_resume_config.sh @@ -105,10 +105,10 @@ file_contents='#!/bin/sh case $1 in pre) - date --iso-8601=seconds | tee /tmp/amendediso_suspended_datetime.txt + date --iso-8601=seconds | tee --append /tmp/amendediso_suspended_datetime.txt ;; post) - date --iso-8601=seconds | tee --append /tmp/amendediso_suspended_datetime.txt ;; + echo "$(date --iso-8601=seconds) resumed" | tee --append /tmp/amendediso_suspended_datetime.txt ;; esac' file_name=suspended_datetime