Re: Forced boot once a day

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

 



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

_______________________________________________
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