wake only on cronjobs that go through sxmo_rtcwake.sh

master
Maarten van Gompel 3 years ago
parent 994f4dc1e1
commit 369f945dd9
  1. 2
      scripts/core/sxmo_screenlock.sh

@ -155,7 +155,7 @@ elif [ "$1" = "crust" ] ; then
YEARS8_TO_SEC=268435455 YEARS8_TO_SEC=268435455
if command -v mnc > /dev/null; then if command -v mnc > /dev/null; then
#wake up 10 seconds before the next cron event #wake up 10 seconds before the next cron event
suspend_time="$(($(mnc)-10))" suspend_time="$(($(crontab -l | grep sxmo_rtcwake | mnc)-10))"
fi fi
if [ -z "$suspend_time" ] || [ "$suspend_time" -gt "$YEARS8_TO_SEC" ]; then if [ -z "$suspend_time" ] || [ "$suspend_time" -gt "$YEARS8_TO_SEC" ]; then
suspend_time="$YEARS8_TO_SEC" suspend_time="$YEARS8_TO_SEC"

Loading…
Cancel
Save