Re: Forced boot once a day

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 14.09.2014 12:02, schrieb Thomas Maaß:
> Maybe an option could be added to VDR to force a boot once a
> day. When the next timer is later than a specific time, set the
> wakeup time to this time. 

You could hack this into the shutdown script itself.

Tomorrow=$(($(date +%s)+86400))

would be the time in exactly 24 hours, and in the same epoch format as
the $1 parameter of the shutdown script. So if $1 equals 0, or $Tomorrow
is less than $1, use $Tomorrow instead.

For completeness, you can also tell VDR that this is the actual expected
boot time, by modifying setup.conf *after* VDR terminated:

sed -i -e "s/^NextWakeupTime = .*/NextWakeupTime = $Tomorrow/" setup.conf

That way, VDR will wake up with no timer nearby, and as it just don't
know what went wrong, it'll shut down again 6 minutes later.


Cheers,

Udo


_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr





[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux