From 4b8ff236b5ba9c79390e9bfbc44d3c97d9bcefc5 Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Mon, 1 Jan 2018 23:41:03 +0100 Subject: [PATCH] call lircd2uinput-add after lircd has been started --- Manual.org | 2 +- .../yavdr-remote/templates/lircd.service.d/lircd2uinput.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Manual.org b/Manual.org index 46a0d12..739d0a8 100644 --- a/Manual.org +++ b/Manual.org @@ -1047,7 +1047,7 @@ lircd0_socket: /var/run/lirc/lircd0 **** Systemd Drop-in to start lircd2uinput with lircd #+BEGIN_SRC conf :tangle roles/yavdr-remote/templates/lircd.service.d/lircd2uinput.conf.j2 :mkdirp yes :padline no [Service] -ExecStartPre=/usr/bin/lircd2uinput-add /var/run/lirc/lircd0 +ExecStartPost=/usr/bin/lircd2uinput-add /var/run/lirc/lircd0 ExecStopPost=/usr/bin/lircd2uinput-remove /var/run/lirc/lircd0 #+END_SRC **** create /etc/rc_maps.cfg diff --git a/roles/yavdr-remote/templates/lircd.service.d/lircd2uinput.conf.j2 b/roles/yavdr-remote/templates/lircd.service.d/lircd2uinput.conf.j2 index ece77f0..db6dee0 100644 --- a/roles/yavdr-remote/templates/lircd.service.d/lircd2uinput.conf.j2 +++ b/roles/yavdr-remote/templates/lircd.service.d/lircd2uinput.conf.j2 @@ -1,3 +1,3 @@ [Service] -ExecStartPre=/usr/bin/lircd2uinput-add /var/run/lirc/lircd0 +ExecStartPost=/usr/bin/lircd2uinput-add /var/run/lirc/lircd0 ExecStopPost=/usr/bin/lircd2uinput-remove /var/run/lirc/lircd0