From: Andrew Ruthven Date: Sat, 19 Apr 2008 04:20:34 +0000 (+1200) Subject: Allow the check time frame to be specifid on the commandline, default to X-Git-Tag: 0.7.4~5 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeddf4b162146bb6dd5bfcf6753da46d2cf5535e;p=mythtv-status.git Allow the check time frame to be specifid on the commandline, default to 10 minutes. --- diff --git a/bin/mythtv_recording_soon b/bin/mythtv_recording_soon index b3198b5..c2842ba 100755 --- a/bin/mythtv_recording_soon +++ b/bin/mythtv_recording_soon @@ -15,8 +15,15 @@ then . /etc/default/mythtv-status fi +if [ "x$1" -ne "x" ] +then + ARGS="--recording-in-warn $1" +else + ARGS="--recording-in-warn 600" +fi + /usr/bin/mythtv-status -h ${HOST:=localhost} --return-code-only \ - --recording-now --next-recording + --recording-now --next-recording $ARGS if [ $? -eq 1 ] then