script to start vdr with softdevice

changes on vdr and w_scan scripts
This commit is contained in:
Arne Fitzenreiter
2008-04-17 19:19:33 +02:00
parent 3a231e36e2
commit 2adf52860c
7 changed files with 30 additions and 5 deletions

View File

@@ -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
;;

View File

@@ -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