aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2020-06-24 14:41:23 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2020-06-24 17:01:17 +0100
commit770a69f18d6031404f5da92f7a841813c0c0d207 (patch)
tree796307d9939b0db203938dea2c05b107839e1cc1
parentcdee89b0a0b16da5187656f837f047f43b2503b7 (diff)
downloadmeta-raspberrypi-770a69f18d6031404f5da92f7a841813c0c0d207.tar.gz
meta-raspberrypi-770a69f18d6031404f5da92f7a841813c0c0d207.tar.bz2
meta-raspberrypi-770a69f18d6031404f5da92f7a841813c0c0d207.zip
lirc_%.bbappend: Use lircd.service as in Raspbian
Use lircd systemd service similar to the one in Raspbian. Start lircd with argument --nodaemon after lircd-setup.service. Edit device in /etc/lirc/lirc_options.conf to switch between receive and transmit modes (lircd must be restarted after such change). Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
-rw-r--r--dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/lircd.service11
-rw-r--r--dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_%.bbappend1
2 files changed, 12 insertions, 0 deletions
diff --git a/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/lircd.service b/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/lircd.service
new file mode 100644
index 0000000..03ecbb0
--- /dev/null
+++ b/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/lircd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=LIRC Infrared Signal Decoder
+Wants=lircd-setup.service
+After=network.target lircd-setup.service
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/lircd --nodaemon
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_%.bbappend b/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_%.bbappend
index d46ce58..5d3ab4d 100644
--- a/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_%.bbappend
+++ b/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_%.bbappend
@@ -2,4 +2,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append_rpi = " \
file://lirc-gpio-ir-0.10.patch \
+ file://lircd.service \
"