-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
I think I will modify my shutdown script. I thought VDR could care of this. However such a daily wakeup only makes sense, when epgsearch's searchtimer is used. Without epgsearch such a wakeup is useless. How can I compare the wakeup times in a bash script? A "0" is given when no timer is present? - -- gpg-id: ccdbc2cf https://www.setho.org/people
Am 17.09.2014 20:44, schrieb Thomas Maaß:
How can I compare the wakeup times in a bash script? A "0" is given when no timer is present?
Basically, something like this:
boottime="$1" if [ "$1" -eq 0 -o "$1" -gt "$tomorrow" ] ; then boottime="$tomorrow" fi
After that, use $boottime instead of $1 for wakeup programming. Untested, ymmv.
Cheers,
Udo