Commit 5fe877b5 authored by Christophe Massiot's avatar Christophe Massiot

* extra/dvbiscovery/dvbiscovery.sh: Fix bugs.

parent 337c81e2
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
############################################################################### ###############################################################################
CONF_BASE="/usr/local/share/dvblast/dvbiscovery-" CONF_BASE="/usr/local/share/dvblast/dvbiscovery"
#CONF_BASE="./" #CONF_BASE="./"
DVBLAST=dvblast DVBLAST=dvblast
LOCK_TIMEOUT=2500 LOCK_TIMEOUT=2500
...@@ -114,11 +114,12 @@ signal_catch() { ...@@ -114,11 +114,12 @@ signal_catch() {
exec_dvblast() { exec_dvblast() {
tmp_file=`mktemp` tmp_file=`mktemp`
$DVBLAST $diseqc $adapter -O $LOCK_TIMEOUT -Q $QUIT_TIMEOUT -q4 -x xml $opts 2>| $tmp_file & $DVBLAST $diseqc $adapter -O $LOCK_TIMEOUT -Q $QUIT_TIMEOUT -q4 -x xml $opts >| $tmp_file &
childpid=$! childpid=$!
wait $childpid wait $childpid
if test $? -eq 0; then if test $? -eq 0; then
cat $tmp_file cat $tmp_file
echo "</TS>"
rm $tmp_file rm $tmp_file
exit 0 exit 0
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment