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:
parent
b4c1ccef76
commit
e30aefc253
3 changed files with 60 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue