Jump to content


philsmd

Member Since 16 Nov 2012
Offline Last Active 15 Jun 2016 15:01
-----

Topics I've Started

Execute custom script on Wakeup/Standby

30 December 2012 - 22:54

Hi,
I need to execute a custom script on my STB (be it either a binary executable or a shell script) that will be executed whenever I press the power button on the remote control.
More accurate it would be that it executes on system start and before both standby and deepstandby (possibly including also reboots etc).

I'm not sure how to do that. Do I have to install any utils (like pm-utils etc)?
I am missing something? I looked arround a little bit but neither a forum post here nor google did tell me what I need to do to accomplish this task. Maybe I'm searching in the wrong direction.

What I need is to e.g. symbol-link my custom script that will be executed by the start/stop trigger(s)/runlevels ....
Please help

What is the best solution? Is there a catch-all solution (for all cases above)?

Thanks