mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 23:43:00 +02:00
Check added to prevent the vdr start if no DVB card is present
This commit is contained in:
@@ -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
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user