mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed 'runvdr' to stay in the loop only if VDR returns an exit status of '1'
This commit is contained in:
parent
12d5d01faa
commit
60341fc883
1
HISTORY
1
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'.
|
||||
|
4
runvdr
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user