diff --git a/config/rootfiles/packages/vdr-softdevice b/config/rootfiles/packages/vdr-softdevice index e33e0d037..3b6270da3 100644 --- a/config/rootfiles/packages/vdr-softdevice +++ b/config/rootfiles/packages/vdr-softdevice @@ -1,3 +1,4 @@ +opt/vdr/bin/runvdr-soft opt/vdr/PLUGINS/lib/libsoftdevice-fb.so.1.6.0 opt/vdr/PLUGINS/lib/libsoftdevice-shm.so.1.6.0 opt/vdr/PLUGINS/lib/libvdr-softdevice.so.1.6.0 diff --git a/config/vdr/bin/runvdr b/config/vdr/bin/runvdr index 114c91466..7f8059dac 100755 --- a/config/vdr/bin/runvdr +++ b/config/vdr/bin/runvdr @@ -9,11 +9,18 @@ # actual 'vdr' program. # +PLUGOPTS="-Pstreamdev-server" + VDRPRG="./bin/vdr" -VDRCMD="$VDRPRG -w 60 -c /opt/vdr/etc -Pstreamdev-server $*" +VDRCMD="$VDRPRG -w 60 -c /opt/vdr/etc $PLUGOPTS $*" KILL="killall -q -TERM" +if [ "$(ps -A | grep " vdr")" != "" ]; then + echo vdr is already running! + exit 1 +fi + mkdir -p /var/video cd /opt/vdr while (true) do diff --git a/config/vdr/bin/runvdr-soft b/config/vdr/bin/runvdr-soft new file mode 100755 index 000000000..8459df8dd --- /dev/null +++ b/config/vdr/bin/runvdr-soft @@ -0,0 +1,3 @@ +#!/bin/sh +clear +runvdr -Psoftdevice > /dev/null 2>&1 diff --git a/config/vdr/etc/plugins/streamdevhosts.conf b/config/vdr/etc/plugins/streamdevhosts.conf index 86c12904d..2bbd16b1c 100644 --- a/config/vdr/etc/plugins/streamdevhosts.conf +++ b/config/vdr/etc/plugins/streamdevhosts.conf @@ -1,2 +1,3 @@ +127.0.0.1 10.0.0.0/8 192.168.0.0/16 diff --git a/lfs/w_scan b/lfs/w_scan index 508562e9a..7320c18a2 100644 --- a/lfs/w_scan +++ b/lfs/w_scan @@ -81,6 +81,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch < $(DIR_SRC)/src/patches/w_scan-ipfire.patch cd $(DIR_APP) && make cd $(DIR_APP) && install -m 755 w_scan /opt/vdr/bin/ - cd $(DIR_APP) && install -m 755 w_scan_start.sh /opt/vdr/bin/ + cd $(DIR_APP) && install -m 755 w_scan_start.sh /opt/vdr/bin/w_scan_start @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/src/initscripts/init.d/vdr b/src/initscripts/init.d/vdr index bacb2707a..eb170be2e 100644 --- a/src/initscripts/init.d/vdr +++ b/src/initscripts/init.d/vdr @@ -18,7 +18,11 @@ case "${1}" in start) boot_mesg "Starting Video Disk Recorder..." - cd /opt/vdr + if [ "$(ps -A | grep runvdr)" != "" ]; then + boot_mesg "Error! Alrady run!" + echo_failure + exit 1; + fi loadproc screen -dmS vdr /opt/vdr/bin/runvdr ;; diff --git a/src/patches/w_scan-ipfire.patch b/src/patches/w_scan-ipfire.patch index 96c87afab..cab9a2ed8 100644 --- a/src/patches/w_scan-ipfire.patch +++ b/src/patches/w_scan-ipfire.patch @@ -1,5 +1,14 @@ ---- w_scan_start.sh.org 2008-01-05 19:58:44.000000000 +0100 -+++ w_scan_start.sh 2008-04-12 18:18:19.000000000 +0200 +--- w_scan_start.sh 2008-01-05 19:58:44.000000000 +0100 ++++ w_scan_start.sh 2008-04-17 12:38:04.000000000 +0200 +@@ -10,7 +10,7 @@ + ####################################################### + + umask 022 +-export PATH="$(pwd):/bin:/usr/bin:/sbin:/usr/sbin" ++export PATH="$(pwd):/bin:/usr/bin:/sbin:/usr/sbin:/opt/vdr/bin" + DATE="$(date +%Y)$(date +%m)$(date +%d)" # $DATE == "YYYYMMDD", i.e. 20060710 + W_SCAN=$(which w_scan 2>/dev/null) + UDEVSTART=$(which udevstart) @@ -224,7 +224,7 @@ echo "Checking for ct-vdr style startscript.." if [ -e /etc/init.d/vdr ]; then # c't-vdr