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>
This commit is contained in:
Maarten van Gompel 2021-07-22 19:34:51 +02:00 committed by Stacy Harper
parent b4c1ccef76
commit e30aefc253
No known key found for this signature in database
GPG key ID: 5BAC92328B7C5D65
3 changed files with 60 additions and 42 deletions

View file

@ -179,7 +179,8 @@ elif [ "$1" = "crust" ] ; then
if [ "$UNSUSPENDREASON" != "modem" ]; then
echo 1200 > "$NETWORKRTCSCAN"
fi
sxmo_hooks.sh postwake "$UNSUSPENDREASON"
#this will in turn invoke the postwake hook
sxmo_postwake.sh "$UNSUSPENDREASON"
exit 0
elif [ "$1" = "getCurState" ] ; then
getCurState