How to run script on resume/wake up?

I would like to run ascript on kodi wakeup.
Already tried ./config/ and but those run only on boot up/power on.
Found some tutorial but for LibreELEC, nothing for CoreELEC. Is it possible with CE?
Thank you

CoreELEC is a fork so same instructions applies to it.

It is working, almost.

Echo part is printing but the called script is not executed.

case "$1" in
 echo "suspend" >> "/tmp/test.log"
 echo "resume" >> "/tmp/test.log"

I know is correct because it was working with and
Is internet connection available when onResume scripts are called?

Use full path for the
For network it probably depends. If not use some delay before executing the script.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.