VDR-Patches

Thomas Schmidt pkg-vdr-dvb-devel@lists.alioth.debian.org
Fri, 16 Jul 2004 11:29:35 +0200


--3uo+9/B/ebqu+fSQ
Content-Type: multipart/mixed; boundary="BOKacYhQ+x31HxR3"
Content-Disposition: inline


--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Tobias Grimm schrieb am 16.07.04, um 12:20 Uhr:
> for (( i=3D1 ; line<${#patchlevels[@]} ; i++ )); do
>=20
> muss es
>=20
> for (( i=3D1 ; i<${#patchlevels[@]} ; i++ )); do
>=20
> heissen.

Ok, vdr startet wieder, ich werde es gleich mal ins cvs packen - eine
Unklarheit gibts aber noch: vdr wird jetzt trotzdem mit allen Plugins
gestartet, obwohl keins ein gesetztes patchlevel-feld hat. Ich denke
mal, das das nicht so beabsichtigt ist, oder? :)
(Output h=E4ngt an der Mail dran.)

Thomas

--=20
Thomas Schmidt
thomas.schmidt@in.stud.tu-ilmenau.de

--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: attachment; filename="output.txt"
Content-Transfer-Encoding: quoted-printable

+ PATH=3D/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ NAME=3Dvdr
+ DESC=3DLinux Video Disk Recorder
+ ENABLED=3D0
+ test -f /etc/default/vdr
+ . /etc/default/vdr
++ ENABLED=3D1
++ VIDEO_DIR=3D/video
++ CFG_DIR=3D/var/lib/vdr
++ PLUGIN_DIR=3D/usr/lib/vdr/plugins
++ PLUGIN_CFG_DIR=3D/var/lib/vdr/plugins
++ PLUGIN_PREFIX=3Dlibvdr-
++ PLUGIN_ORDER_FILE=3D/etc/vdr/plugins/order.conf
++ CMDHOOKSDIR=3D/usr/share/vdr/command-hooks
++ REC_CMD=3D/usr/lib/vdr/vdr-recordingaction
++ SHUTDOWN_CMD=3D/usr/lib/vdr/vdr-shutdown
++ OPTIONS=3D-w 60
+ test 1 '!=3D' 0
+ test -x /usr/sbin/runvdr
+ . /usr/lib/vdr/plugin-loader.sh
+++ /usr/bin/vdr -V
+++ grep '^vdr[- ]'
+++ sed -e 's/.*(\(.*\)).*/\1/'
++ VERSION=3D1.2.6
++ PLUGINS=3D
+ . /usr/lib/vdr/commands-loader.sh
+ echo -n 'Starting Linux Video Disk Recorder: vdr'
Starting Linux Video Disk Recorder: vdr+ startvdr
+ ps ax
+ grep '/usr/bin/vdr '
+ grep -v grep
+ getplugins
+ local plugin_order
+ local installed_plugins
+ local ordered_plugins
+ local plugin
+ local i
+ local arguments
+ local packages
+ local patchelvels
+ local leftout
+ echo -ne '\nSearching for plugins:'

Searching for plugins:+ installed_plugins=3D(`find $PLUGIN_DIR -maxdepth 1 =
-name "$PLUGIN_PREFIX*.so.$VERSION" -printf "%f " | sed "s/$PLUGIN_PREFIX\(=
[^\.]\+\)\.so\.$VERSION/\1/g"`)
++ find /usr/lib/vdr/plugins -maxdepth 1 -name 'libvdr-*.so.1.2.6' -printf =
'%f '
++ sed 's/libvdr-\([^\.]\+\)\.so\.1.2.6/\1/g'
+ packages=3D("vdr" "${installed_plugins[@]/#/vdr-plugin-}")
+ patchlevels=3D("`LANG=3Den;dpkg -s ${packages[@]} 2>&1 | awk -F ':' '/^Pa=
ckage: / {p=3D$2} /^Package.*is not installed/ {print "\"\""} (/[pP]atchlev=
el:/ || /^$/) && p!=3D"" {print "\""$2"\"";p=3D""}'`")
++ LANG=3Den
++ dpkg -s vdr vdr-plugin-games vdr-plugin-bitstreamout vdr-plugin-vcd vdr-=
plugin-prefermenu vdr-plugin-mplayer vdr-plugin-softdevice vdr-plugin-femon=
 vdr-plugin-dvd vdr-plugin-mp3
++ awk -F : '/^Package: / {p=3D$2} /^Package.*is not installed/ {print """"=
} (/[pP]atchlevel:/ || /^$/) && p!=3D"" {print """$2""";p=3D""}'
+ (( i=3D1  ))
+ (( i<1  ))
+ installed_plugins=3D("${installed_plugins[@]}")
+ '[' -r /etc/vdr/plugins/order.conf ']'
+ plugin_order=3D(`cat $PLUGIN_ORDER_FILE | sed "s/#.*$//"`)
++ cat /etc/vdr/plugins/order.conf
++ sed 's/#.*$//'
+ (( i=3D0  ))
+ (( i<9  ))
+ '[' dvd =3D=3D -games ']'
+ '[' dvd =3D=3D games ']'
+ (( i++  ))
+ (( i<9  ))
+ '[' dvd =3D=3D -bitstreamout ']'
+ '[' dvd =3D=3D bitstreamout ']'
+ (( i++  ))
+ (( i<9  ))
+ '[' dvd =3D=3D -vcd ']'
+ '[' dvd =3D=3D vcd ']'
+ (( i++  ))
+ (( i<9  ))
+ '[' dvd =3D=3D -prefermenu ']'
+ '[' dvd =3D=3D prefermenu ']'
+ (( i++  ))
+ (( i<9  ))
+ '[' dvd =3D=3D -mplayer ']'
+ '[' dvd =3D=3D mplayer ']'
+ (( i++  ))
+ (( i<9  ))
+ '[' dvd =3D=3D -softdevice ']'
+ '[' dvd =3D=3D softdevice ']'
+ (( i++  ))
+ (( i<9  ))
+ '[' dvd =3D=3D -femon ']'
+ '[' dvd =3D=3D femon ']'
+ (( i++  ))
+ (( i<9  ))
+ '[' dvd =3D=3D -dvd ']'
+ '[' dvd =3D=3D dvd ']'
+ ordered_plugins=3D("${ordered_plugins[@]}" "$plugin")
+ unset 'installed_plugins[7]'
+ installed_plugins=3D("${installed_plugins[@]}")
+ break
+ (( i=3D0  ))
+ (( i<8  ))
+ '[' mp3 =3D=3D -games ']'
+ '[' mp3 =3D=3D games ']'
+ (( i++  ))
+ (( i<8  ))
+ '[' mp3 =3D=3D -bitstreamout ']'
+ '[' mp3 =3D=3D bitstreamout ']'
+ (( i++  ))
+ (( i<8  ))
+ '[' mp3 =3D=3D -vcd ']'
+ '[' mp3 =3D=3D vcd ']'
+ (( i++  ))
+ (( i<8  ))
+ '[' mp3 =3D=3D -prefermenu ']'
+ '[' mp3 =3D=3D prefermenu ']'
+ (( i++  ))
+ (( i<8  ))
+ '[' mp3 =3D=3D -mplayer ']'
+ '[' mp3 =3D=3D mplayer ']'
+ (( i++  ))
+ (( i<8  ))
+ '[' mp3 =3D=3D -softdevice ']'
+ '[' mp3 =3D=3D softdevice ']'
+ (( i++  ))
+ (( i<8  ))
+ '[' mp3 =3D=3D -femon ']'
+ '[' mp3 =3D=3D femon ']'
+ (( i++  ))
+ (( i<8  ))
+ '[' mp3 =3D=3D -mp3 ']'
+ '[' mp3 =3D=3D mp3 ']'
+ ordered_plugins=3D("${ordered_plugins[@]}" "$plugin")
+ unset 'installed_plugins[7]'
+ installed_plugins=3D("${installed_plugins[@]}")
+ break
+ (( i=3D0  ))
+ (( i<7  ))
+ '[' mplayer =3D=3D -games ']'
+ '[' mplayer =3D=3D games ']'
+ (( i++  ))
+ (( i<7  ))
+ '[' mplayer =3D=3D -bitstreamout ']'
+ '[' mplayer =3D=3D bitstreamout ']'
+ (( i++  ))
+ (( i<7  ))
+ '[' mplayer =3D=3D -vcd ']'
+ '[' mplayer =3D=3D vcd ']'
+ (( i++  ))
+ (( i<7  ))
+ '[' mplayer =3D=3D -prefermenu ']'
+ '[' mplayer =3D=3D prefermenu ']'
+ (( i++  ))
+ (( i<7  ))
+ '[' mplayer =3D=3D -mplayer ']'
+ '[' mplayer =3D=3D mplayer ']'
+ ordered_plugins=3D("${ordered_plugins[@]}" "$plugin")
+ unset 'installed_plugins[4]'
+ installed_plugins=3D("${installed_plugins[@]}")
+ break
+ (( i=3D0  ))
+ (( i<6  ))
+ '[' vcd =3D=3D -games ']'
+ '[' vcd =3D=3D games ']'
+ (( i++  ))
+ (( i<6  ))
+ '[' vcd =3D=3D -bitstreamout ']'
+ '[' vcd =3D=3D bitstreamout ']'
+ (( i++  ))
+ (( i<6  ))
+ '[' vcd =3D=3D -vcd ']'
+ '[' vcd =3D=3D vcd ']'
+ ordered_plugins=3D("${ordered_plugins[@]}" "$plugin")
+ unset 'installed_plugins[2]'
+ installed_plugins=3D("${installed_plugins[@]}")
+ break
+ (( i=3D0  ))
+ (( i<5  ))
+ '[' games =3D=3D -games ']'
+ '[' games =3D=3D games ']'
+ ordered_plugins=3D("${ordered_plugins[@]}" "$plugin")
+ unset 'installed_plugins[0]'
+ installed_plugins=3D("${installed_plugins[@]}")
+ break
+ (( i=3D0  ))
+ (( i<4  ))
+ '[' -prefermenu =3D=3D -bitstreamout ']'
+ '[' -prefermenu =3D=3D bitstreamout ']'
+ (( i++  ))
+ (( i<4  ))
+ '[' -prefermenu =3D=3D -prefermenu ']'
+ unset 'installed_plugins[1]'
+ installed_plugins=3D("${installed_plugins[@]}")
+ break
+ (( i=3D0  ))
+ (( i<3  ))
+ '[' sc =3D=3D -bitstreamout ']'
+ '[' sc =3D=3D bitstreamout ']'
+ (( i++  ))
+ (( i<3  ))
+ '[' sc =3D=3D -softdevice ']'
+ '[' sc =3D=3D softdevice ']'
+ (( i++  ))
+ (( i<3  ))
+ '[' sc =3D=3D -femon ']'
+ '[' sc =3D=3D femon ']'
+ (( i++  ))
+ (( i<3  ))
+ (( i=3D0  ))
+ (( i<3  ))
+ '[' -bitstreamout =3D=3D -bitstreamout ']'
+ unset 'installed_plugins[0]'
+ installed_plugins=3D("${installed_plugins[@]}")
+ break
+ (( i=3D0  ))
+ (( i<2  ))
+ '[' -softdevice =3D=3D -softdevice ']'
+ unset 'installed_plugins[0]'
+ installed_plugins=3D("${installed_plugins[@]}")
+ break
+ ordered_plugins=3D("${ordered_plugins[@]}" "${installed_plugins[@]}")
+ echo -n ' dvd'
 dvd+ '[' -r /var/lib/vdr/plugins/plugin.dvd.conf ']'
+ PLUGINS=3D -P dvd
+ echo -n ' mp3'
 mp3+ '[' -r /var/lib/vdr/plugins/plugin.mp3.conf ']'
+ PLUGINS=3D -P dvd -P mp3
+ echo -n ' mplayer'
 mplayer+ '[' -r /var/lib/vdr/plugins/plugin.mplayer.conf ']'
+ PLUGINS=3D -P dvd -P mp3 -P mplayer
+ echo -n ' vcd'
 vcd+ '[' -r /var/lib/vdr/plugins/plugin.vcd.conf ']'
+ PLUGINS=3D -P dvd -P mp3 -P mplayer -P vcd
+ echo -n ' games'
 games+ '[' -r /var/lib/vdr/plugins/plugin.games.conf ']'
+ PLUGINS=3D -P dvd -P mp3 -P mplayer -P vcd -P games
+ echo -n ' femon'
 femon+ '[' -r /var/lib/vdr/plugins/plugin.femon.conf ']'
+ PLUGINS=3D -P dvd -P mp3 -P mplayer -P vcd -P games -P femon
+ '[' '' '!=3D' '' ']'
+ mergecommands commands
+ local cmd
+ local cmds
+ local cmdsorder
+ local line
+ local cmdtype
+ local cmdfile
+ local ordered_cmds
+ cmdtype=3Dcommands
+ cmdfile=3D/var/lib/vdr/commands.conf
+ writewarning commands
+ echo -e '#\n# WARNING: Do not edit this file! It is automatically generat=
ed by the\n#          vdr init-script. If you want to define some custom co=
mmands,\n#          put them in a file called commands.<name>.conf and rest=
art vdr.\n#          All commands.*.conf files will be concatenated to this=
 file.\n#\n# WARNUNG: =C4ndern Sie nicht diese Datei! Diese Datei wird auto=
matisch vom\n#          vdr init-Skript generiert. Wenn Sie eigene Kommando=
s definieren\n#          m=F6chten, so schreiben Sie diese in eine Datei mi=
t dem Namen\n#          commands.<name>.conf und starten Sie vdr erneut. Al=
le\n#          commands.*.conf -Dateien werden zu dieser Datei zusammengef=
=FCgt.\n#\n\n\n'
+ cmdsorder=3D(`cat /etc/vdr/command-hooks/order.$cmdtype.conf | sed "s/#.*=
$//"`)
++ cat /etc/vdr/command-hooks/order.commands.conf
++ sed 's/#.*$//'
+ cmds=3D(`find $CMDHOOKSDIR -follow -name "$cmdtype.*.conf" || true`)
++ find /usr/share/vdr/command-hooks -follow -name 'commands.*.conf'
+ (( line=3D0  ))
+ (( line<1  ))
+ echo /usr/share/vdr/command-hooks/commands.custom.conf
+ grep firstcommand
+ (( line++  ))
+ (( line<1  ))
+ (( line=3D0  ))
+ (( line<1  ))
+ echo /usr/share/vdr/command-hooks/commands.custom.conf
+ grep secondcommand
+ (( line++  ))
+ (( line<1  ))
+ (( line=3D0  ))
+ (( line<1  ))
+ echo /usr/share/vdr/command-hooks/commands.custom.conf
+ grep thirdcommand
+ (( line++  ))
+ (( line<1  ))
+ ordered_cmds=3D("${ordered_cmds[@]}" "${cmds[@]}")
+ '[' /usr/share/vdr/command-hooks/commands.custom.conf '!=3D' '' ']'
+ cat /usr/share/vdr/command-hooks/commands.custom.conf
+ echo ''
+ mergecommands reccmds
+ local cmd
+ local cmds
+ local cmdsorder
+ local line
+ local cmdtype
+ local cmdfile
+ local ordered_cmds
+ cmdtype=3Dreccmds
+ cmdfile=3D/var/lib/vdr/reccmds.conf
+ writewarning reccmds
+ echo -e '#\n# WARNING: Do not edit this file! It is automatically generat=
ed by the\n#          vdr init-script. If you want to define some custom co=
mmands,\n#          put them in a file called reccmds.<name>.conf and resta=
rt vdr.\n#          All reccmds.*.conf files will be concatenated to this f=
ile.\n#\n# WARNUNG: =C4ndern Sie nicht diese Datei! Diese Datei wird automa=
tisch vom\n#          vdr init-Skript generiert. Wenn Sie eigene Kommandos =
definieren\n#          m=F6chten, so schreiben Sie diese in eine Datei mit =
dem Namen\n#          reccmds.<name>.conf und starten Sie vdr erneut. Alle\=
n#          reccmds.*.conf -Dateien werden zu dieser Datei zusammengef=FCgt=
=2E\n#\n\n\n'
+ cmdsorder=3D(`cat /etc/vdr/command-hooks/order.$cmdtype.conf | sed "s/#.*=
$//"`)
++ cat /etc/vdr/command-hooks/order.reccmds.conf
++ sed 's/#.*$//'
+ cmds=3D(`find $CMDHOOKSDIR -follow -name "$cmdtype.*.conf" || true`)
++ find /usr/share/vdr/command-hooks -follow -name 'reccmds.*.conf'
+ (( line=3D0  ))
+ (( line<1  ))
+ echo /usr/share/vdr/command-hooks/reccmds.custom.conf
+ grep firstcommand
+ (( line++  ))
+ (( line<1  ))
+ (( line=3D0  ))
+ (( line<1  ))
+ echo /usr/share/vdr/command-hooks/reccmds.custom.conf
+ grep secondcommand
+ (( line++  ))
+ (( line<1  ))
+ (( line=3D0  ))
+ (( line<1  ))
+ echo /usr/share/vdr/command-hooks/reccmds.custom.conf
+ grep thirdcommand
+ (( line++  ))
+ (( line<1  ))
+ ordered_cmds=3D("${ordered_cmds[@]}" "${cmds[@]}")
+ '[' /usr/share/vdr/command-hooks/reccmds.custom.conf '!=3D' '' ']'
+ cat /usr/share/vdr/command-hooks/reccmds.custom.conf
+ echo ''
+ start-stop-daemon --start --quiet --exec /usr/sbin/runvdr -- -v /video -c=
 /var/lib/vdr -r /usr/lib/vdr/vdr-recordingaction -s /usr/lib/vdr/vdr-shutd=
own -w 60 -P dvd -P mp3 -P mplayer -P vcd -P games -P femon
+ echo .
=2E
+ exit 0

--BOKacYhQ+x31HxR3--

--3uo+9/B/ebqu+fSQ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA95//c9+NqwoydlIRAsaDAKDAWYOsjRXfZ2mW9OnM04LS+8FIrgCfTo6U
PYJw8dKN4maDHURRx78NUbk=
=Z+Ur
-----END PGP SIGNATURE-----

--3uo+9/B/ebqu+fSQ--