summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-08-17 14:48:11 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-08-17 14:48:11 +0200
commit60341fc8836c8cd968772a3e2a7c251191eb6ff9 (patch)
treed75be9f6ab478404845f0d2ffc75012b1e8ee199
parent12d5d01faa95d65dba09d6b6313f59d2d2433ca9 (diff)
downloadvdr-60341fc8836c8cd968772a3e2a7c251191eb6ff9.tar.gz
vdr-60341fc8836c8cd968772a3e2a7c251191eb6ff9.tar.bz2
Fixed 'runvdr' to stay in the loop only if VDR returns an exit status of '1'
-rw-r--r--HISTORY1
-rwxr-xr-xrunvdr4
2 files changed, 3 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 1f2b7120..7a761a40 100644
--- a/HISTORY
+++ b/HISTORY
@@ -2314,3 +2314,4 @@ Video Disk Recorder Revision History
(suggested by Helmut Auer).
- Removing deleted recordings faster than normal when cutting, to avoid running
out of disk space (thanks to Manfred Schmidt-Voigt for reporting this one).
+- Fixed 'runvdr' to stay in the loop only if VDR returns an exit status of '1'.
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