Runvdr - DVBModule/Plugins

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
K
 
(10 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 
==Vorbemerkung==
 
==Vorbemerkung==
Beim Kernel '''2.6*''' gibt es mehrere Möglichkeiten die DVB Treiber zu verwenden.
+
Das hier aufgeführte "runvdr" Skript habe ich bei mir in Verwendung. Unter umständen muss das Skript an euren VDR noch angepasst werden.
  
* Kernel-Treiber (die bereits im Kernel enthalten sind)
+
==runvdr Skript==
Nachteil: meist veraltet
+
Das "runvdr" Skript ist unter folgendem Pfad zu finden:
 +
cd /usr/local/bin
 +
vi runvdr
  
* Treiber von LinuxTV
+
  #!/bin/sh
Nachteil: etwas Installations- und Konfigurationsaufwand
+
 
+
 
+
Ich beschränke mich hier auf die Installation der seperaten DVB Treiber von LinuxTV. Bei einer SuSE10.1 Distribution sind bereits DVB Treiber enthalten die man mittels YAST installieren kann. Hierbei handelt es sich um die Version "dvb 1.1.0_CVS20051019". Diese habe ich nicht verwendet da dieser Treiber sowie die enthaltene Firmware ziemlich veraltet ist.
+
 
+
   
+
#!/bin/sh
+
 
   
 
   
 
  # runvdr: Loads the DVB driver and runs VDR
 
  # runvdr: Loads the DVB driver and runs VDR
 
  #
 
  #
# If VDR exits abnormally, the driver will be reloaded
+
  # If VDR exits abnormally, the driver will be reloaded
 
  # and VDR restarted.
 
  # and VDR restarted.
 
  #
 
  #
Zeile 49: Zeile 44:
 
         -E /var/vdr \
 
         -E /var/vdr \
 
         -L /usr/local/src/VDR/PLUGINS/lib \
 
         -L /usr/local/src/VDR/PLUGINS/lib \
        -s /usr/local/bin/vdrpoweroff.sh \
+
         -P femon $*"
        -r "/usr/local/bin/noadcall.sh" \
+
        -P dvd \
+
        -P vcd \
+
        -P text2skin \
+
        -P tvonscreen \
+
        -P statusleds \
+
        -P director \
+
         -P femon \
+
        -P mp3 \
+
        -P mplayer $*"
+
 
   
 
   
 
  LSMOD="`/sbin/lsmod | grep -w 'dvb_core' | wc -l`"
 
  LSMOD="`/sbin/lsmod | grep -w 'dvb_core' | wc -l`"
Zeile 92: Zeile 77:
 
       date
 
       date
 
       done
 
       done
 +
 +
[[Kategorie:Skripte]]

Aktuelle Version vom 1. Dezember 2009, 23:11 Uhr

[Bearbeiten] Vorbemerkung

Das hier aufgeführte "runvdr" Skript habe ich bei mir in Verwendung. Unter umständen muss das Skript an euren VDR noch angepasst werden.

[Bearbeiten] runvdr Skript

Das "runvdr" Skript ist unter folgendem Pfad zu finden:

cd /usr/local/bin
vi runvdr
#!/bin/sh

# runvdr: Loads the DVB driver and runs VDR
#
 # If VDR exits abnormally, the driver will be reloaded
# and VDR restarted.
#
# In order to actually use this script you need to implement
# the functions DriverLoaded(), LoadDriver() and UnloadDriver()
# and maybe adjust the VDRPRG and VDRCMD to your particular
# requirements.
#
# Since this script loads the DVB driver, it must be started
# as user 'root'. Add the option "-u username" to run VDR
# under the given user name.
#
# 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.19 2006/05/14 16:02:05 kls Exp $

export LANG=de_DE.iso8859-1
export LC_CTYPE=de_DE.iso8859-1
PATH=$PATH:/usr/local/bin

VDRUSR=root
VDRPRG="/usr/local/src/VDR/vdr"
VDRCMD="$VDRPRG -w 60 \
       --vfat \
       --lirc \
       -t /dev/tty8 \
       -c /etc/vdr \
       -E /var/vdr \
       -L /usr/local/src/VDR/PLUGINS/lib \
       -P femon $*"

LSMOD="`/sbin/lsmod | grep -w 'dvb_core' | wc -l`"
KILL="/usr/bin/killall -q -TERM"

# Load driver if it hasn't been loaded already:
if [ $LSMOD -eq 0 ] ; then
  (modprobe dvb_core)
  (modprobe dvb_ttpci)
  (modprobe budget_core)
  (modprobe budget)
  (modprobe budget_ci)
  fi

while (true) do
     $VDRCMD
     if test $? -eq 0 -o $? -eq 2; then exit; fi
     date
     echo "restarting VDR"
     $KILL $VDRPRG
     sleep 10
     (modprobe -r budget_ci)
     (modprobe -r budget)
     (modprobe -r budget_core)
     (modprobe -r dvb_ttpci)
     (modprobe -r dvb_core)
     (modprobe dvb_core)
     (modprobe dvb_ttpci)
     (modprobe budget_core)
     (modprobe budget)
     (modprobe budget_ci)
     date
     done