New Astra 19.2 Channellist, moved vdr config to /opt/vdr/etc

This commit is contained in:
Arne Fitzenreiter
2008-03-30 19:13:12 +02:00
parent ae440541d6
commit 42d62a83eb
8 changed files with 1321 additions and 11 deletions

View File

@@ -97,12 +97,12 @@ opt/vdr/share/man/man1/vdr.1.gz
opt/vdr/share/man/man5/vdr.5.gz
#opt/vdr/video
#var/video
var/video/channels.conf
var/video/diseqc.conf
var/video/keymacros.conf
opt/vdr/etc/channels.conf
opt/vdr/etc/diseqc.conf
opt/vdr/etc/keymacros.conf
#var/video/plugins
var/video/plugins/streamdevhosts.conf
var/video/setup.conf
var/video/sources.conf
var/video/svdrphosts.conf
opt/vdr/etc/plugins/streamdevhosts.conf
opt/vdr/etc/setup.conf
opt/vdr/etc/sources.conf
opt/vdr/etc/svdrphosts.conf
etc/rc.d/init.d/vdr

36
config/vdr/bin/runvdr Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/sh
# runvdr: Loads the DVB driver and runs VDR
#
# If VDR exits abnormally, the driver will be reloaded
# and VDR restarted.
#
# Any command line parameters will be passed on to the
# actual 'vdr' program.
#
VDRPRG="./bin/vdr"
VDRCMD="$VDRPRG -w 60 -c /opt/vdr/etc -Pstreamdev-server $*"
KILL="killall -q -TERM"
mkdir -p /var/video
cd /opt/vdr
while (true) do
#
# If you have stability Problems at tuning or similar
# unload and reload the dvb-modules here ...
# Example is for Hauppauge Nexus 2.0
#
# rmmod dvb_ttpci
# rmmod stv0299
# rmmod dvb_core
# modprobe dvb_ttpci
#
sleep 1
eval "$VDRCMD"
if test $? -eq 0 -o $? -eq 2; then exit; fi
$KILL $VDRPRG
sleep 10
echo "`date` restarting VDR"
done

1273
config/vdr/etc/channels.conf Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -86,8 +86,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP) && make VIDEODIR=/var/video vdr $(MAKETUNING)
cd $(DIR_APP) && make PREFIX=. DESTDIR=/opt/vdr/ install
-mkdir -p /var/video/plugins/
cd $(DIR_APP) && install *.conf /var/video/
cp -f $(DIR_SRC)/config/vdr/*.conf /var/video/
cp -f $(DIR_SRC)/config/vdr/plugins/*.conf /var/video/plugins/
cd $(DIR_APP) && install *.conf /opt/vdr/etc/
cp -f $(DIR_SRC)/config/vdr/* /opt/vdr/
@rm -rf $(DIR_APP)
@$(POSTBUILD)

View File

@@ -19,11 +19,12 @@ case "${1}" in
start)
boot_mesg "Starting Video Disk Recorder..."
cd /opt/vdr
loadproc screen -dmS vdr /opt/vdr/bin/vdr -Pstreamdev-server
loadproc screen -dmS vdr /opt/vdr/bin/runvdr
;;
stop)
boot_mesg "Stopping Video Disk Recorder..."
killall -s KILL -w runvdr
killproc /opt/vdr/bin/vdr
;;
@@ -34,6 +35,7 @@ case "${1}" in
;;
status)
statusproc /opt/vdr/bin/runvdr
statusproc /opt/vdr/bin/vdr
;;