Lircrc

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
K
Zeile 4: Zeile 4:
 
<pre>
 
<pre>
 
begin
 
begin
    prog  = irexec
+
    prog  = irexec
    button = Power
+
    button = Power
    button = Power
+
    button = Power
    button = Power
+
    button = Power
    button = 1
+
    button = 1
    config = if [ -n "$(pidof vdr)" ] ; then runvdr stop ; else runvdr start ; fi
+
    config = killall -9 vdr
 
end
 
end
+
 
 
begin
 
begin
    prog  = irexec
+
    prog  = irexec
    button = Power
+
    button = Power
    button = Power
+
    button = Power
    button = Power
+
    button = Power
    button = 2
+
    button = 2
    config = reboot
+
    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>

Version vom 2. November 2005, 13:25 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