sxmo-utils/scripts/core/sxmo_rtcwake.sh
Maarten van Gompel 642bf1cc27 Implementing optional rtc wakeup at regular intervals, added presuspend, rtcwake and postwake scripts (with hooks)
(includes missing return 0 statement caught by Serge Hallyn)

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 12:13:22 +01:00

11 lines
348 B
Bash
Executable file

#!/usr/bin/env sh
# This script (and anything it calls) should return as quickly as possible
# as it blocks the system from suspending (and processing input) until done
# If this script returns a non-zero exit code, the system will wake up
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/rtcwake" ]; then
"$XDG_CONFIG_HOME/sxmo/hooks/rtcwake"
exit $?
fi