[mythtv-users] MythTV Frontend shutdown

Jordi Puig jordipu at telefonica.net
Tue May 13 06:17:32 UTC 2008


I have done as follows
Create an script /usr/local/bin/shutdown.sh

# ! /bin/bash
sudo /sbin/shutdown -h now

exit

Make it executable

And in the Menu the button:

<action>EXEC xterm -e  /usr/local/bin/shutdown.sh</action>

It works

En/na Peter Øgaard Meyland ha escrit:
> Hi all
>
> I have a combo FE / BE in the livingroom and a FE Only in the bedroom. 
> My problem is that i can't shutodown the FE from within MythTV. Every 
> time i select Shutdown in the mainmenu nothing happends.
>
> I have done the following:
>     1 I have enabled SHUTDOWN in mainmenu.xml
>     2 As HaltCommand I have entered 'sudo /sbin/shutdown -h now' (I 
> guess that SHUTDOWN is executing this)
>     3 Using visudo I have entered the following line mythUser 
> ALL=NOPASSWD: /sbin/shutdown, /sbin/poweroff, /sbin/reboot, /sbin/halt
>
> The user MythUser can execute the command 'sudo /sbin/shutdown -h now' 
> from a terminal windows and everything works, but not from within 
> MythFrontend. What am I doing wrong?
>
> /Peter
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>   



More information about the mythtv-users mailing list