Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: runvdr problem
This is a follow up. I still don't understand what happens.
If I launch the DVB driver by hand, and uses the followong command, I get VDR
with plugins as intended :
[root@localhost VDR]# /usr/local/src/VDR/vdr -L/usr/local/src/VDR/PLUGINS/lib
-Pdvd -c/dev/dvd -P'mp3 -m/video/mount.sh' -Pstatus
But if I use (as root) the following script, VDR launches without plugins ???
[...]
DVBDIR="../DVB/driver"
VDRPRG="/usr/local/src/VDR/vdr"
VDRCMD="$VDRPRG -L/usr/local/src/VDR/PLUGINS/lib -Pdvd -c/dev/dvd -P'mp3
-m/video/mount.sh' -Pstatus"
export DVDCSS_METHOD=key
LSMOD="`/sbin/lsmod | grep -w '^dvb' | wc -l`"
KILL="/usr/bin/killall -q -TERM"
# Load driver if it hasn't been loaded already:
if [ $LSMOD -eq 0 ] ; then
(cd $DVBDIR; make insmod)
fi
while (true) do
su -c "$VDRCMD"
if test $? -eq 0; then exit; fi
date
echo "VDR est redémarré. Si cela ne marche pas, le driver est planté.
Eteindre."
$KILL $VDRPRG
sleep 10
(cd $DVBDIR; make rmmod; make insmod)
date
echo "$VDRCMD"
done
Is there some magic with quotes ?
David
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index