[mythtv-users] Auto Shutdown and Startup
DCL
dcl63 at hotpop.com
Sun Oct 3 18:05:56 EDT 2004
For some reason Mythtv does not return a value of "auto" for the
parameter $status when my machine is automatically waken. It still
returns a value of "user", so this solution wont work.
Am I not understanding how the $status parameter is being set, or is it
not working properly?
Any other understandable ideas?
Thanks Dan
DCL wrote:
> I found a simple solution:
>
> In the General section on the mythtvsetup screens, I set the "Startup
> Command:" to:
>
> su - mythtv -c "/home/mythtv/startfrontend $status"
>
> Where the contents of /home/mythtv/startfrontend is:
>
> #!/bin/bash
>
> case $1 in
> user )
> ln -sf /usr/bin/mythfrontend
> /home/mythtv/.kde/Autostart/mythfrontend
> ;;
> auto )
> rm -f /home/mythtv/.kde/Autostart/mythfrontend
> ;;
>
> esac
>
> Besure you set permisions on startfrontend so that the mythtv user can
> execute it.
> This assumes you have set up automatic startup per instructions at
> http://wilsonet.com/mythtv/printer-friendly.php#auto
>
>
> Dan
>
>
> DCL wrote:
>
>> Mythtv will only auto shutdown if the frontend appliction is
>> running. How can mythtv be set to shutdown after a scheduled
>> recording when it is set to autostart if the front end is also set to
>> autostart when the application is started by the bios clock?
>>
>> I have tried a script the should be executed immediately after the
>> backend starts that checks the $status value, if "auto" it does
>> nothing, if "user" it should start mythfrontend.
>> This does not work. Any ideas?
>>
>> Thanks Dan
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>
>
> _______________________________________________
> 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