[mythtv-users] shutting down
derliebegott at gmail.com
Sat Oct 20 08:16:23 UTC 2007
your ACPI daemon catches the buttons and runs the commands you want.
You can do it this way:
mythshutdown -s 1 -v all | grep 'status returned: 0' >/dev/null
if [ $? == 0 ]; then
shutdown -h now
2007/10/20, Brad DerManouelian <myth at dermanouelian.com>:
> On Oct 19, 2007, at 8:28 PM, victor rajewski wrote:
> > On 10/20/07, Brad DerManouelian <myth at dermanouelian.com> wrote:
> >> On Oct 19, 2007, at 8:02 PM, victor rajewski wrote:
> >>> I'm trying to find a sensible way to shut my combined front/backend
> >>> down when the power button on either the remote or the computer is
> >>> pressed. I want to check firstly if there are any recordings
> >>> going on,
> >>> and in that case, do nothing. Where can I check the status of the
> >>> backend?
> >> mythshutdown --help
> > So I can just execute that when either button is pressed?
> > vik
> You should write (or find) some sort of perl or shell script that
> will get the response from mythshutdown and then perform a poweroff
> if mythshutdown says it's cool to do so. Then you can trigger that
> script with irexec.
> mythtv-users mailing list
> mythtv-users at mythtv.org
Glauben heißt nicht wissen wollen, was wahr ist ... Nietzsche
More information about the mythtv-users