[mythtv-users] re: powerdown a masterbackend box

Steven Cruysberghs steven.cruysberghs at pi.be
Sun Feb 15 03:06:00 EST 2004


you could use=20
<button>
  <type>SHUTDOWN</type>
  <text>Shutdown</text>
  <action>EXEC /usr/bin/yourshutdownscript</action>
</button>

You can add any program to the menu this way

Op zo 15-02-2004, om 06:22 schreef Kenneth Aafl=C3=B8y:
> On Sunday 15 February 2004 05:46, Audio Phile wrote:
> > Can someone help me out with adding a shutdown button
> > to /usr/share/mythtv/mainmenu.xml that will call a
> > script to powerdown the box?
> >
> > Right now I have:
> >
> >   <!-- <button>
> >      <type>SHUTDOWN</type>
> >      <text>Shutdown</text>
> >      <action>SHUTDOWN</action>
> >    </button> -->
> >
> > Can I just uncomment that?  Help :)
>=20
> I belive you could try to ucomment that, but I suspect that it will only =
bring=20
> up the menu (which is already missing the button). The next thing would t=
o=20
> either alter programs/mythfrontend/main.cpp and recompile, or add a butto=
n=20
> with type =3D EXEC, but i'm not sure how to use that, there is something =
in the=20
> archives at mythtv.org about it tho.



More information about the mythtv-users mailing list