mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Check added to prevent the vdr start if no DVB card is present
This commit is contained in:
@@ -33,8 +33,18 @@ while (true) do
|
|||||||
# rmmod stv0299
|
# rmmod stv0299
|
||||||
# rmmod dvb_core
|
# rmmod dvb_core
|
||||||
# modprobe dvb_ttpci
|
# 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"
|
eval "$VDRCMD"
|
||||||
if test $? -eq 0 -o $? -eq 2; then exit; fi
|
if test $? -eq 0 -o $? -eq 2; then exit; fi
|
||||||
$KILL $VDRPRG
|
$KILL $VDRPRG
|
||||||
|
|||||||
@@ -23,6 +23,18 @@ case "${1}" in
|
|||||||
echo_failure
|
echo_failure
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
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
|
loadproc screen -dmS vdr /opt/vdr/bin/runvdr
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user