mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Explicitly handling exit value 0 and 2
This commit is contained in:
parent
5e61dc1be3
commit
111b8c3f78
4
runvdr
4
runvdr
@ -18,7 +18,7 @@
|
|||||||
# See the main source file 'vdr.c' for copyright information and
|
# See the main source file 'vdr.c' for copyright information and
|
||||||
# how to reach the author.
|
# 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"
|
DVBDIR="../DVB/driver"
|
||||||
VDRPRG="./vdr"
|
VDRPRG="./vdr"
|
||||||
@ -34,7 +34,7 @@ if [ $LSMOD -eq 0 ] ; then
|
|||||||
|
|
||||||
while (true) do
|
while (true) do
|
||||||
su -c "$VDRCMD" $VDRUSR
|
su -c "$VDRCMD" $VDRUSR
|
||||||
if test $? -ne 1; then exit; fi
|
if test $? -eq 0 -o $? -eq 2; then exit; fi
|
||||||
date
|
date
|
||||||
echo "restarting VDR"
|
echo "restarting VDR"
|
||||||
$KILL $VDRPRG
|
$KILL $VDRPRG
|
||||||
|
Loading…
Reference in New Issue
Block a user