From 60341fc8836c8cd968772a3e2a7c251191eb6ff9 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 17 Aug 2003 14:48:11 +0200 Subject: Fixed 'runvdr' to stay in the loop only if VDR returns an exit status of '1' --- runvdr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runvdr') diff --git a/runvdr b/runvdr index 13ee7329..6fdd13e1 100755 --- a/runvdr +++ b/runvdr @@ -18,7 +18,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: runvdr 1.9 2002/03/16 16:22:12 kls Exp $ +# $Id: runvdr 1.10 2003/08/17 14:27:31 kls Exp $ DVBDIR="../DVB/driver" VDRPRG="./vdr" @@ -34,7 +34,7 @@ if [ $LSMOD -eq 0 ] ; then while (true) do su -c "$VDRCMD" $VDRUSR - if test $? -eq 0; then exit; fi + if test $? -ne 1; then exit; fi date echo "restarting VDR" $KILL $VDRPRG -- cgit v1.2.3