vdr/vdr/debian plugin-loader.sh

Tobias Grimm pkg-vdr-dvb-changes@lists.alioth.debian.org
Sun, 09 May 2004 15:09:15 +0000


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

Modified Files:
	plugin-loader.sh 
Log Message:
fixed generation of plugin parameters

Index: plugin-loader.sh
===================================================================
RCS file: /cvsroot/pkg-vdr-dvb/vdr/vdr/debian/plugin-loader.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- plugin-loader.sh	9 May 2004 14:09:20 -0000	1.2
+++ plugin-loader.sh	9 May 2004 15:09:13 -0000	1.3
@@ -4,6 +4,8 @@
 
 VERSION=`/usr/bin/vdr -V 2>/dev/null | grep '^vdr[- ]' | sed -e 's/.*(\(.*\)).*/\1/'`
 
+PLUGINS=""
+
 getplugins ()
 {
     local plugin_order
@@ -47,11 +49,11 @@
     # add the command line arguments for each plugin
     for plugin in ${ordered_plugins[@]}; do
         echo -n " $plugin"
-        PLUGINS="$PLUGINS -P $plugin"
         if [ -r "$PLUGIN_CFG_DIR/plugin.$plugin.conf" ] ; then
             arguments=( `cat $PLUGIN_CFG_DIR/plugin.$plugin.conf | sed "s/#.*$//"` )
-            PLUGINS="$PLUGINS ${arguments[*]}\""
+            PLUGINS="$PLUGINS -P \"$plugin ${arguments[*]}\""
+	else
+	    PLUGINS="$PLUGINS -P $plugin"
         fi
     done
-    #echo
 }