vdr/vdr/debian changelog plugin-loader.sh vdr.init

Thomas Schmidt pkg-vdr-dvb-changes@lists.alioth.debian.org
Sat, 07 Aug 2004 10:39:14 +0000


Update of /cvsroot/pkg-vdr-dvb/vdr/vdr/debian
In directory haydn:/tmp/cvs-serv14717/vdr/vdr/debian

Modified Files:
	changelog plugin-loader.sh vdr.init 
Log Message:
* use /bin/bash as shell in vdr.init
* close #264081

Index: changelog
===================================================================
RCS file: /cvsroot/pkg-vdr-dvb/vdr/vdr/debian/changelog,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- changelog	7 Aug 2004 10:23:08 -0000	1.39
+++ changelog	7 Aug 2004 10:39:12 -0000	1.40
@@ -23,10 +23,12 @@
     - List Andreas Mueller <amu@tr.debian.net> as Uploader
     - Added patch from Andreas Jochens <aj@andaco.de> to fix FTBFS with
       gcc 3.4 (Closes: #262744)
-    - changed $PLUGIN_CFG_DIR in /etc/default/vdr, to /etc/vdr/plugins 
+    - Changed $PLUGIN_CFG_DIR in /etc/default/vdr, to /etc/vdr/plugins 
       (Closes: #264071)
+    - Changed vdr.init and plugin-loader.sh as suggested by Darren Salt
+      (Closes: #264081)
 
- -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org>  Sun, 04 Jul 2004 16:20:04 +0200
+ -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org>  Sun, 07 Aug 2004 12:36:33 +0200 
 
 vdr (1.2.6-4) unstable; urgency=low
 

Index: plugin-loader.sh
===================================================================
RCS file: /cvsroot/pkg-vdr-dvb/vdr/vdr/debian/plugin-loader.sh,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- plugin-loader.sh	21 Jul 2004 13:37:43 -0000	1.8
+++ plugin-loader.sh	7 Aug 2004 10:39:12 -0000	1.9
@@ -4,7 +4,7 @@
 
 VERSION=`/usr/bin/vdr -V 2>/dev/null | grep '^vdr[- ]' | sed -e 's/.*(\(.*\)).*/\1/'`
 
-PLUGINS=""
+PLUGINS=()
 
 getplugins ()
 {
@@ -67,14 +67,16 @@
     ordered_plugins=( "${ordered_plugins[@]}" "${installed_plugins[@]}" )
 
     # add the command line arguments for each plugin
+	 i=0
     for plugin in ${ordered_plugins[@]}; do
         echo -n " $plugin"
         if [ -r "$PLUGIN_CFG_DIR/plugin.$plugin.conf" ] ; then
             arguments=( `cat $PLUGIN_CFG_DIR/plugin.$plugin.conf | sed "s/#.*$//"` )
-            PLUGINS="$PLUGINS -P \"$plugin ${arguments[*]}\""
-	else
-	    PLUGINS="$PLUGINS -P $plugin"
+				PLUGINS[$i]="-P $plugin ${arguments[*]}"
+        else
+		      PLUGINS[$i]="-P $plugin"
         fi
+		  i=$(($i+1))
     done
 
     # warn about incompatible plugins

Index: vdr.init
===================================================================
RCS file: /cvsroot/pkg-vdr-dvb/vdr/vdr/debian/vdr.init,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- vdr.init	11 Jul 2004 09:38:32 -0000	1.24
+++ vdr.init	7 Aug 2004 10:39:12 -0000	1.25
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 # vdr start-stop script
 #
@@ -29,7 +29,7 @@
     	mergecommands "reccmds"
     	start-stop-daemon --start --quiet \
 	 	--exec /usr/sbin/runvdr -- -v $VIDEO_DIR -c $CFG_DIR -r $REC_CMD \
-	 	-s $SHUTDOWN_CMD $OPTIONS $PLUGINS &
+	 	-s $SHUTDOWN_CMD $OPTIONS "${PLUGINS[@]}" &
     else
 	   echo -n " - seems to be running already"
     fi