[mythtv-users] Add Exit Button

Bryan Halter bhalter at armyofpenguins.com
Mon Feb 27 03:40:02 UTC 2006


Paul Pick wrote:

>>is there a way to add another exit button to my frontend?  i guess there's
>>always a way.  what i am asking is what is involved.  i am using an xbox and
>>would like to be able to add a button to 'exit and reboot'.  thanks.
>>    
>>
>
>In your mainmenu.xml, add stuff like:
>
><button>
>   <type>FRONTEND</type>
>   <text>Exit Frontend</text>
>   <action>SHUTDOWN</action>
></button>
>
><button>
>   <type>REBOOT</type>
>   <text>Reboot System</text>
>   <action>EXEC sudo /sbin/reboot</action>
></button>
>
><button>
>   <type>SHUTDOWN</type>
>   <text>Power Off System</text>
>   <action>EXEC sudo /sbin/poweroff -h</action>
></button>
>
>  
>
Can also modify /etc/acpi/default.sh so that when the power button is 
pressed it kills mythfrontend and calls init 0



More information about the mythtv-users mailing list