Moin !
Sicher, daß das kein Kompilerlauf ist?
Code
ralf:/home/ralf # /usr/local/bin/runvdr
/lib/modules/2.4.21-273-default/build/scripts/pathdown.sh: line 4: TOPDIR: parameter null or not set
DIR=`pwd`; (cd /lib/modules/2.4.21-273-default/build; make SUBDIRS=$DIR modules)
make[1]: Entering directory `/usr/src/linux-2.4.21-273-include/default'
make -C /usr/local/src/DVB/driver CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.21-273-include/default/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -fno-unit-at-a-time -pipe -msoft -float -mpreferred-stack-boundary=2 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.21-273-include/default/include/linux/modversions.h" MAKING_MODULES=1 modules ...
Weiter unten kommt dann die Geschichte mit insmod und so... (Will ich jetzt nicht weiter ausführen.)
Meine runvdr ist die von 'Sandmann'. Hier mal der komplette Abdruck:
Bash
#!/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.12 2004/01/09 16:19:26 kls Exp $
DVBDIR="/usr/local/src/DVB/driver"
#DVBAPPSDIR="/usr/local/src/DVB/apps/av7110_loadkeys"
VDRPRG="/usr/local/bin/vdr"
VDRCMD="$VDRPRG -w 60 -c /etc/vdr -E /var/vdr $*\
-L /usr/local/src/VDR/PLUGINS/lib \
-s /usr/local/bin/vdrshutdown \
-P text2skin \
-P femon \
-P vcd \
"
VDRUSR=vdr
#$DVBAPPSDIR/av7110_loadkeys $DVBAPPSDIR/alles.rc5 > /proc/av7110_ir
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 $VDRUSR -c "$VDRCMD"
if test $? -eq 0 -o $? -eq 2; then exit; fi
date
echo "restarting VDR"
$KILL $VDRPRG
sleep 10
(cd $DVBDIR; make rmmod; make insmod)
date
done
Alles anzeigen
Die Steuerung erfolgt ganz normal über den Dektop mit Hilfe von 'kvdr'. Denn die Fernbedienung klappt auch noch nicht, aber darüber schreibe ich ein anderes Mal...
Das Rechteproblem gibt es mit diesem Script ja zum Glück nicht, da vdr in jedem Fall als User vdr gestartet wird. Das soll auch so sein. Das Script starte ich von Hand als root, weil ja die Treiber eingebunden werden müssen.
Ich habe auch schon gesehn, daß es zwei Anleitungen gibt. Ich werde mir mal bei Zeiten die kurze Version ausdrucken und 'antun'...
gruß, Ralf