Check added to prevent the vdr start if no DVB card is present

This commit is contained in:
Arne Fitzenreiter
2008-05-04 15:15:09 +02:00
parent 0e07ae5460
commit 0f4001f8f4
2 changed files with 23 additions and 1 deletions

View File

@@ -33,8 +33,18 @@ while (true) do
# rmmod stv0299
# rmmod dvb_core
# modprobe dvb_ttpci
# sleep 5
#
# Check if DVB device is present / remove this check if you
# would use vdr as streaming client only
#
if [ ! -e /dev/dvb/adapter0/frontend0 ]; then
echo No DVB tuner found!
exit 1
fi
#
# Run VDR
#
sleep 1
eval "$VDRCMD"
if test $? -eq 0 -o $? -eq 2; then exit; fi
$KILL $VDRPRG