View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Sep 03, 2005 6:40 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Here's a very simple method to add a shutdown button (that is a remote/keyboard selectable menu item) to the main menu in Mythtv. Useful if you want a quick and dirty way to shutdown your mythbox without sshing into it or bringing-up a shell and doing it from the box. I'll post a screenshot as soon as my webhost come back up.

---

I'll also say that I'm using the classic theme option.

nano (or your fav text editor) /usr/share/mythtv/theme/classic/mainmenu.xml

Add the following wherever you want the button to appear
Code:
<button>
   <type>Halt </type>
   <text>Halt </text>
   <action>EXEC /usr/bin/sudo halt</action>
   </button>

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 03, 2005 9:51 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
isnt that already under the default knoppmyth menu?

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 03, 2005 1:42 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Is it? I'm using R5A15.1 and I had to add it myself... I downloaded A16 but haven't installed it yet.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 03, 2005 1:52 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I think you're talking past each other. There is a halt button in the default config which has been there as long as I can remember, but it's not on the top level menu, it's on the KnoppMyth sub-menu...


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu