sxmo-utils/configs/default_hooks/postwake
Maarten van Gompel e30aefc253
re-adding a postwake wrapper script so the hook can be simplified
Changes from v1: This triggers the hook (without the 5 second sleep!) also when the unsuspendreason is modem or rtc,
so the user can always override the behaviour and do what he/she wants.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 08:37:07 +02:00

9 lines
247 B
Bash

#!/usr/bin/env sh
UNSUSPENDREASON="$1"
#The UNSUSPENDREASON can be "usb power", "modem", "rtc" (real-time clock
#periodic wakeup) or "button". You will likely want to check against this and
#decide what to do
# Add here whatever you want to do