Hi, I'm working with an embedded board (a BeagleBoard), running a Linux distribution (Angstrom Linux). I would like to gently halt the operating system when a given button is pushed on the board. What I plan to do is :
- At the init, launch a "power-off" daemon as root user
- "power-off" run the magic code to check if a given button is pressed
- If the button is pressed, "power-off" call "halt"
Before jumping on my text-editor and code that, is there some standard Linux daemon to do that ?