[mythtv] startupCommand not getting "auto" on automatic startup? 0.18.1

Fredrik Karlsson dargosch at gmail.com
Wed Jul 20 02:13:13 EDT 2005


Hi,

I have noticed a problem in the handling of startup commands. Using
the following script:

mythtv ~ # cat /usr/local/bin/mythguictrl
#!/usr/bin/perl

use warnings;
use strict;

package main;


my $lockfile ='/home/mythtv/.mythguilock';
my $logfile ='/home/mythtv/.mythtv/guilocklog';
#my $logfile = '/var/log/mythtv/startupdate';
my $date =`/usr/bin/date`;

-e $lockfile and unlink $lockfile;

if(  $ARGV[0] eq "auto"  ){

       open LOCK,'>',$lockfile;
       print LOCK "1";
       close LOCK;

}


open(STARTLOG,">> $logfile ") or die "Unable to open log file:$!";
print STARTLOG "$ARGV[0] $date";
close(STARTLOG);

1;

And these settings:

startupCommand=/usr/local/bin/mythguictrl $status

I get a log file like this:
mythtv ~ # cat /home/mythtv/.mythtv/guilocklog
user Sun Jul 10 13:56:17 CEST 2005
user Sun Jul 10 14:12:35 CEST 2005
user Sun Jul 10 14:14:49 CEST 2005
user Sun Jul 10 14:16:54 CEST 2005
user Sun Jul 10 14:55:12 CEST 2005
user Sun Jul 10 15:03:42 CEST 2005
user Sun Jul 10 16:06:17 CEST 2005
user Sun Jul 10 16:24:17 CEST 2005
user Sun Jul 10 20:54:10 CEST 2005
user Mon Jul 11 13:34:17 CEST 2005
user Tue Jul 12 13:34:16 CEST 2005
user Wed Jul 13 13:34:10 CEST 2005
user Thu Jul 14 13:34:09 CEST 2005

The problem is that the 13:34:* startup times at the end are all due
to  an automatic wakeup using nwram-wakeup. How come the script is not
given "auto" as an argument?


/Fredrik
-- 
My Gentoo + PVR-350 + IVTV + MythTV blog is on  
http://gentoomythtv.blogspot.com/


More information about the mythtv-dev mailing list