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

@@ -23,6 +23,18 @@ case "${1}" in
echo_failure
exit 1;
fi
if [ ! -e /dev/dvb/adapter0/frontend0 ]; then
boot_mesg "Error! No DVB tuner found."
echo_failure
exit 1;
fi
if [ "$(ps -A | grep runvdr)" != "" ]; then
boot_mesg "Error! Alrady run!"
echo_failure
exit 1;
fi
loadproc screen -dmS vdr /opt/vdr/bin/runvdr
;;