Ich teste vdr-2.1.8. Das Verzeichnis /etc/vdr/conf.d wurde bei der Installation schon angelegt - mir root-Rechten, aber das sollte ja reichen, da nur lesender Zugriff durch den vdr-User.
In der vdr.5 heisst es
COMMANDLINE OPTIONS
If started without any options, vdr tries to read any files in the directory /etc/vdr/conf.d with names that do not
begin with a '.' and that end with '.conf'.
These files are read in alphabetical order. The format of these files is
# comment
[name]
-a
-b 123
--long
--longarg=123
Any lines that begin with '#' as the first non-whitespace character are considered comments and are ignored.
A command line option file consists of one or more sections, indicated by '[name]',
where 'name' is either the fixed word 'vdr' (if this section contains options for the main VDR program)
or the name of the plugin this section applies to. Each option must be written on
a separate line, including the leading '-' (for a short option) or '--' (for a long option).
If the option has additional arguments, they have to be written on the same line as the option itself,
separated from the option with a blank (short option) or equal sign (long option).
Alles anzeigen
In der runvdr (basierend auf der runvdr.template aus den sourcen) habe ich zunächst folgendes probiert:
VDROPTIONS=""
VDRPLUGINS="-Psofthddevice"
Wie man sieht, habe ich unter VDRPLUGINS nur das mitzuladende Plugin, nicht aber seine Parameter angegeben. Die Parameter stehen ausschließlich in den conf-Dateien:
martin@ubuntuvdr2:/etc/vdr/conf.d$ cat softhddevice.conf
#softhddevice plugin parameters
[softhddevice]
-a hw:1,7
-p hw:1,7
-d :0 -f
-v vdpau
martin@ubuntuvdr2:/etc/vdr/conf.d$ cat vdr.conf
#vdr parameters
[vdr]
-w 60
-u martin
-c /var/lib/vdr
-s /usr/local/bin/vdrpoweroff.sh
martin@ubuntuvdr2:/etc/vdr/conf.d$
Alles anzeigen
Leider bleibt die Konfiguration völlig unberücksichtigt. Erst wenn ich auch VDRPLUGINS="" setze, scheint es zu greifen. Aber wie wird nun bestimmt, welche Plugins geladen werden sollen? Werden nur noch die Plugins geladen, für die eine conf-Datei vorhanden ist? Demnach müsste man auch eine conf-Datei anlegen, wenn man gar keine Parameter definieren möchte? Mal abgesehen davon, dass sich das aus der Beschreibung so m.E. nicht ableiten lässt, fände ich das jetzt eher unpraktisch.