~mil/sxmo-utils

369f945dd9ed783ab463a357bde414cb90b29e6e — Maarten van Gompel 2 months ago 994f4dc 1.5.0
wake only on cronjobs that go through sxmo_rtcwake.sh
1 files changed, 1 insertions(+), 1 deletions(-)

M scripts/core/sxmo_screenlock.sh
M scripts/core/sxmo_screenlock.sh => scripts/core/sxmo_screenlock.sh +1 -1
@@ 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"