diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-08-26 16:15:41 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-08-26 16:15:41 +0200 |
commit | 111b8c3f783dca9c6b5223195f4fa178f30f9bed (patch) | |
tree | f08b9888b28797b0e2ff76378fe9d4a0a7f0f7b2 /runvdr | |
parent | 5e61dc1be3ecfb4132cdb814b3f44a27735cec52 (diff) | |
download | vdr-111b8c3f783dca9c6b5223195f4fa178f30f9bed.tar.gz vdr-111b8c3f783dca9c6b5223195f4fa178f30f9bed.tar.bz2 |
Explicitly handling exit value 0 and 2
Diffstat (limited to 'runvdr')
-rwxr-xr-x | runvdr | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,7 +18,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: runvdr 1.10 2003/08/17 14:27:31 kls Exp $ +# $Id: runvdr 1.11 2003/08/26 16:15:41 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 $? -ne 1; then exit; fi + if test $? -eq 0 -o $? -eq 2; then exit; fi date echo "restarting VDR" $KILL $VDRPRG |