Installscript-keymacros.conf

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(keymacros.conf: M)
Zeile 1: Zeile 1:
 
==Beschreibung==
 
==Beschreibung==
Installiert(entpackt) man das [[epgsearch-plugin]] ueber den Plugins-Manager, so wird in der [[keymacros.conf]], die Zeile:
+
Installiert(entpackt) man zbs das [[epgsearch-plugin]] ueber den Plugins-Manager, so wird in der [[keymacros.conf]], die Zeile:
  
 
  Green    Schedule
 
  Green    Schedule
Zeile 10: Zeile 10:
 
ersetzt, das selbe Rückwärts, sprich bei einer "deinstallation" wird der Eintrag wieder hergestellt.
 
ersetzt, das selbe Rückwärts, sprich bei einer "deinstallation" wird der Eintrag wieder hergestellt.
  
  ">" für installation
+
  [epgsearch]
"<" zurück
+
's:^\(Green    \).*:\1@epgsearch:'
 +
's:^\(Green    \).*:\1Schedule:'
  
 
Sollte in '''/var/log/vdr/plugins.log''' wie folgt aussehen:
 
Sollte in '''/var/log/vdr/plugins.log''' wie folgt aussehen:
  
 
  ------------------------------------------------------------------------
 
  ------------------------------------------------------------------------
  - epgsearch-0.0.7
+
  - epgsearch-0.9.4 Mon Jun 27 14:31:42 2005
 
  ------------------------------------------------------------------------
 
  ------------------------------------------------------------------------
  +++ cmd : create symbolic link `epgsearch' to `epgsearch-0.0.7'
+
  +++ cmd : create symbolic link `epgsearch' to `epgsearch-0.9.4'
 
  +++ msg : command(s) in keymacros.conf found...
 
  +++ msg : command(s) in keymacros.conf found...
  +++ cmd : sed -i 's:^Green    Schedule$:Green    @epgsearch:' "${DISDIR}/keymacros.conf"
+
  +++ cmd : sed -i 's:^\(Green    \).*:\1@epgsearch:' ../keymacros.conf
 
           [...]
 
           [...]
 
  ------------------------------------------------------------------------
 
  ------------------------------------------------------------------------
Zeile 28: Zeile 29:
 
# Description: commands for the keymacros.conf (See man vdr(5))
 
# Description: commands for the keymacros.conf (See man vdr(5))
 
#
 
#
# Format: <plugin>:<->:<cmd(s)>
+
# Format: ^[plugin]
#                  ^
+
# in
#                   > in
+
# out
#                   < out
+
  
epgsearch:>:sed -i 's:^Green    Schedule$:Green    @epgsearch:' "${DISDIR}/keymacros.conf"
+
[epgsearch]
epgsearch:<:sed -i 's:^Green    @epgsearch$:Green    Schedule:' "${DISDIR}/keymacros.conf"
+
's:^\(Green    \).*:\1@epgsearch:'
 +
's:^\(Green    \).*:\1Schedule:'
  
loadepg:>:sed -i 's:^User9    0$:User9    @loadepg:' "${DISDIR}/keymacros.conf"
 
loadepg:<:sed -i 's:^User9    @loadepg$:User9    0:' "${DISDIR}/keymacros.conf"
 
  
pilot:>:sed -i 's:^Red      Recordings$:Red      @pilot:' "${DISDIR}/keymacros.conf"
+
[loadepg]
pilot:<:sed -i 's:^Red      @pilot$:Red      Recordings:' "${DISDIR}/keymacros.conf"
+
's:^\(User9    \).*:\1@loadepg:'
 +
's:^\(User9    \).*:\1User9:'
  
prefermenu:>:sed -i 's:^Yellow    Setup$:Yellow    @prefermenu:' "${DISDIR}/keymacros.conf"
 
prefermenu:<:sed -i 's:^Yellow    @prefermenu$:Yellow    Setup:' "${DISDIR}/keymacros.conf"
 
  
yaepg:>:sed -i 's:^Blue      Timers$:Blue      @yaepg:' "${DISDIR}/keymacros.conf"
+
[pilot]
yaepg:<:sed -i 's:^Blue      @yaepg$:Blue      Timers:' "${DISDIR}/keymacros.conf"
+
's:^\(Red      \).*:\1@pilot:'
 +
's:^\(Red      \).*:\1Recordings:'
 +
 
 +
 
 +
[prefermenu]
 +
's:^\(Yellow    \).*:\1@prefermenu:'
 +
's:^\(Yellow    \).*:\1Setup:'
 +
 
 +
 
 +
[yaepg]
 +
's:^\(Blue      \).*:\1@yaepg:'
 +
's:^\(Blue      \).*:\1Timers:'
 
</pre>
 
</pre>
 
[[Kategorie:Installscript]]
 
[[Kategorie:Installscript]]

Version vom 27. Juni 2005, 13:51 Uhr

Beschreibung

Installiert(entpackt) man zbs das epgsearch-plugin ueber den Plugins-Manager, so wird in der keymacros.conf, die Zeile:

Green     Schedule

durch:

Green     @epgsearch

ersetzt, das selbe Rückwärts, sprich bei einer "deinstallation" wird der Eintrag wieder hergestellt.

[epgsearch]
	's:^\(Green     \).*:\1@epgsearch:'
	's:^\(Green     \).*:\1Schedule:'

Sollte in /var/log/vdr/plugins.log wie folgt aussehen:

------------------------------------------------------------------------
- epgsearch-0.9.4 Mon Jun 27 14:31:42 2005
------------------------------------------------------------------------
+++ cmd : create symbolic link `epgsearch' to `epgsearch-0.9.4'
+++ msg : command(s) in keymacros.conf found...
+++ cmd : sed -i 	's:^\(Green     \).*:\1@epgsearch:' ../keymacros.conf
          [...]
------------------------------------------------------------------------

keymacros.conf

# Description: commands for the keymacros.conf (See man vdr(5))
#
# Format: ^[plugin]
#			in
#			out

[epgsearch]
	's:^\(Green     \).*:\1@epgsearch:'
	's:^\(Green     \).*:\1Schedule:'


[loadepg]
	's:^\(User9     \).*:\1@loadepg:'
	's:^\(User9     \).*:\1User9:'


[pilot]
	's:^\(Red       \).*:\1@pilot:'
	's:^\(Red       \).*:\1Recordings:'


[prefermenu]
	's:^\(Yellow    \).*:\1@prefermenu:'
	's:^\(Yellow    \).*:\1Setup:'


[yaepg]
	's:^\(Blue      \).*:\1@yaepg:'
	's:^\(Blue      \).*:\1Timers:'