From 369f945dd9ed783ab463a357bde414cb90b29e6e Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Thu, 29 Jul 2021 22:39:10 +0200 Subject: [PATCH] wake only on cronjobs that go through sxmo_rtcwake.sh --- scripts/core/sxmo_screenlock.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/sxmo_screenlock.sh b/scripts/core/sxmo_screenlock.sh index 4e2226c..bdce4b7 100755 --- a/scripts/core/sxmo_screenlock.sh +++ b/scripts/core/sxmo_screenlock.sh @@ -155,7 +155,7 @@ elif [ "$1" = "crust" ] ; then YEARS8_TO_SEC=268435455 if command -v mnc > /dev/null; then #wake up 10 seconds before the next cron event - suspend_time="$(($(mnc)-10))" + suspend_time="$(($(crontab -l | grep sxmo_rtcwake | mnc)-10))" fi if [ -z "$suspend_time" ] || [ "$suspend_time" -gt "$YEARS8_TO_SEC" ]; then suspend_time="$YEARS8_TO_SEC"