I want to execute a script on every start up, wake up and activation. In the current setup the script is executed in:
/etc/rc.local
/lib/systemd/system-sleep
It works so far, but if I reactivate my PC after 12 hours when it is in suspend to disk mode, the script won't be executed. If I wake my PC after 1 hour when it is in suspend to RAM mode it will be executed.
Do you guys know a path or way to execute a script on every turn on? Thank you.