I found a write up on creating a "Reboot"
menu item that I can't get to work (<a href="http://mythfrontend.topcities.com/">http://mythfrontend.topcities.com/</a>) extract at the bottom. I followed the instructions but the system won't
reboot I get the menu item and a quick blink but no reboot?
<br><br>I'm guessing it might be a permission problem? I'm using mythtv as my user so I simply replaced mce with mythtv <span style="font-weight: bold; font-style: italic;">"mythtv ALL=NOPASSWD:/sbin/shutdown,/sbin/reboot"
</span><br><br>Any thoughts or ideas anyone might have would be appreciated.<br><br>Thanks,<br>AJM<br><br><br><br><span style="font-style: italic;">6.11 adding a reboot button</span><br style="font-style: italic;"><span style="font-style: italic;">
Being able to shutdown the xbox from mythfrontend is nice, but sometimes a reboot is preferred,</span><br style="font-style: italic;"><span style="font-style: italic;">e.g. if you'd like to play a game or so. To allow this, one can add a button on the mythfrontend
</span><br style="font-style: italic;"><span style="font-style: italic;">menu. To prevent accidents, it is good practice to create an extra submenu for this. Below, the</span><br style="font-style: italic;"><span style="font-style: italic;">
contents of /usr/share/mythtv/reboot.xml is given. This is a new file I created myself.</span><br style="font-style: italic;"><span style="font-style: italic;"><mythmenu name="REBOOT"></span><br style="font-style: italic;">
<span style="font-style: italic;"><button></span><br style="font-style: italic;"><span style="font-style: italic;"><text>No, not right now</text></span><br style="font-style: italic;"><span style="font-style: italic;">
<action>MENU mainmenu.xml</action></span><br style="font-style: italic;"><span style="font-style: italic;"></button></span><br style="font-style: italic;"><span style="font-style: italic;"><button>
</span><br style="font-style: italic;"><span style="font-style: italic;"><text>Yes, reboot please</text></span><br style="font-style: italic;"><span style="font-style: italic;"><action>EXEC sudo /sbin/reboot</action>
</span><br style="font-style: italic;"><span style="font-style: italic;"></button></span><br style="font-style: italic;"><span style="font-style: italic;"></mythmenu></span><br style="font-style: italic;"><span style="font-style: italic;">
To access this submenu, simply add the following snippet in the menu where you'd like to add it.</span><br style="font-style: italic;"><span style="font-style: italic;">For instance in /usr/share/mythtv/mainmenu.xml.</span>
<br style="font-style: italic;"><span style="font-style: italic;">21</span><br style="font-style: italic;"><span style="font-style: italic;"><button></span><br style="font-style: italic;"><span style="font-style: italic;">
<text>Reboot</text></span><br style="font-style: italic;"><span style="font-style: italic;"><action>MENU reboot.xml</action></span><br style="font-style: italic;"><span style="font-style: italic;">
</button></span><br style="font-style: italic;"><span style="font-style: italic;">Obviously, this will only work if this command is added to the sudoers file as was done in subsection</span><br style="font-style: italic;">
<span style="font-style: italic;">6.9. The mce line should now contain the following:</span><br style="font-style: italic;"><span style="font-style: italic;">mce ALL=NOPASSWD:/sbin/shutdown,/sbin/reboot</span>