wake only on cronjobs that go through sxmo_rtcwake.sh
This commit is contained in:
parent
994f4dc1e1
commit
369f945dd9
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue