Wenn mein vdr abstürzt oder ich im Hauptmenü die Funktion "Neustarten" benutze, dann startet vdr zwar neu, aber frägt mich jedesmal beim start wieder nach dem lernen der Fernbedienungscodes. Ich vermute einen Fehler in meiner runvdr, könnte die sich jemand mal anschaun ??
Suse 9.1, Dvd-Treiber wird über das hotplug/firmware (mit rcdvb start) gestartet.
runvdr:
#!/bin/sh
# runvdr: Loads the DVB driver and runs VDR
#
# If VDR exits abnormally, the driver will be reloaded
# and VDR restarted.
#
# Set the environment variable VDRUSR to the user id you
# want VDR to run with. If VDRUSR is not set, VDR will run
# as 'root', which is not necessarily advisable.
#
# Since this script loads the DVB driver, it must be started
# as user 'root'.
#
# Any command line parameters will be passed on to the
# actual 'vdr' program.
#
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: runvdr 1.11 2003/08/26 16:15:41 kls Exp $
DVBDIR="/usr/local/src/DVB/driver"
DVBREM="/usr/share/dvb/av7110_loadkeys"
VDRPRG="/usr/local/bin/vdr"
VDRCMD="$VDRPRG -w 60 \
-l3 \
-s /usr/local/bin/vdrshutdown \
-c /etc/vdr \
-r'/usr/local/src/noad-0.4.1/noad' \
-L /usr/local/src/VDR/PLUGINS/lib $* \
-v /media \
-E /etc/vdr/epg.data \
-P'mp3 -m /etc/vdr/mount.sh -B /var/lib/cddb' \
-P'mplayer -m /etc/vdr/mount.sh -M /etc/vdr/mplayer.sh' \
-P'osdteletext -r' \
-Pdvd \
-P'image -m /etc/vdr/mount.sh' \
-Posdpip \
-P'epgsearch -f /usr/local/bin/svdrpsend.pl' \
-Premote"
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
rcdvb start
(/usr/bin/av7110_loadkeys $DVBREM/hauppauge_grey.rc5 > /proc/av7110_ir)
export LD_ASSUME_KERNEL=2.4.1
fi
while (true) do
su -c "$VDRCMD" root
if test $? -eq 0 -o $? -eq 2; then exit; fi
date
echo "restarting VDR"
$KILL $VDRPRG
sleep 10
rcdvb restart
(/usr/bin/av7110_loadkeys $DVBREM/hauppauge_grey.rc5 > /proc/av7110_ir)
date
done
Danke vielmals.