Lircrc

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
 
(9 dazwischenliegende Versionen von 7 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 +
Konfigurationsdatei von [[LIRC]].
 +
 +
{{Box Datei | [[Struktur|/etc]]/lircrc |
 
<pre>
 
<pre>
 
begin
 
begin
button = Reserve_1
+
    prog  = irexec
prog  = irexec
+
    button = Power
repeat = 0
+
    button = Power
config = if [ -n "$(pidof vdr)" ] ; then echo "/usr/local/bin/runvdr stop >/dev/null 2>&1" | at now >/dev/null 2>&1 ; else echo "/usr/local/bin/runvdr start >/dev/null 2>&1" | at now >/dev/null 2>&1 ; fi
+
    button = Power
 +
    button = 1
 +
    config = killall -9 vdr
 
end
 
end
  
 
begin
 
begin
button = Reserve_2
+
    prog  = irexec
prog  = irexec
+
    button = Power
repeat = 0
+
    button = Power
config = reboot
+
    button = Power
 +
    button = 2
 +
    config = if [ -n "$(pidof vdr)" ] ; then runvdr stop ; else runvdr start ; fi &
 +
end
 +
 
 +
begin
 +
    prog  = irexec
 +
    button = Power
 +
    button = Power
 +
    button = Power
 +
    button = 3
 +
    config = reboot
 
end
 
end
 
</pre>
 
</pre>
[[Kategorie:Installscript]]
+
}}
 +
 
 +
[[Kategorie:Konfigurationsdateien]]

Aktuelle Version vom 13. April 2006, 19:11 Uhr

Konfigurationsdatei von LIRC.

Datei
/etc/lircrc
begin
    prog   = irexec
    button = Power
    button = Power
    button = Power
    button = 1
    config = killall -9 vdr
end

begin
    prog   = irexec
    button = Power
    button = Power
    button = Power
    button = 2
    config = if [ -n "$(pidof vdr)" ] ; then runvdr stop ; else runvdr start ; fi &
end

begin
    prog   = irexec
    button = Power
    button = Power
    button = Power
    button = 3
    config = reboot
end