[lirc] lircd.service: add sh wrapper, bump spec.
leamas
leamas at fedoraproject.org
Sun Nov 17 04:39:10 UTC 2013
commit bc430f8092dd3c93dbd534d6d6c89ca2dee4f1e4
Author: Alec Leamas <leamas at nowhere.net>
Date: Sun Nov 17 05:39:24 2013 +0100
lircd.service: add sh wrapper, bump spec.
lirc.spec | 7 +++++--
lircd.service | 4 ++--
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/lirc.spec b/lirc.spec
index d34b098..25f9eb5 100644
--- a/lirc.spec
+++ b/lirc.spec
@@ -22,9 +22,9 @@
Name: lirc
Version: 0.9.0
%if 0%{?released}
-Release: 20%{?dist}
+Release: 21%{?dist}
%else
-Release: 0.4.%{pre}%{?dist}
+Release: 0.5.%{pre}%{?dist}
%endif
Summary: The Linux Infrared Remote Control package
@@ -337,6 +337,9 @@ find /etc/systemd -name lirc.service -xtype l -delete || :
%changelog
+* Sun Nov 17 2013 leamas.alec at gmail.com - 0.9.0-21
+- lircd.service: add sh wrapper to handle empty argumentes.
+
* Sun Nov 17 2013 leamas.alec at gmail.com - 0.9.0-20
- Fixing typo in -20.
- Ignore errors in PreExec/PostExec.
diff --git a/lircd.service b/lircd.service
index 231df21..3506df7 100644
--- a/lircd.service
+++ b/lircd.service
@@ -7,8 +7,8 @@ Type=simple
EnvironmentFile=-/etc/sysconfig/lirc
ExecStartPre=-/bin/sh -c 'test -n "${LIRCD_IR_DEVICE}" && \
echo lirc > /sys/class/rc/${LIRCD_IR_DEVICE}/protocols || :'
-ExecStart=/usr/sbin/lircd ${LIRCD_OPTIONS} \
- --driver ${LIRC_DRIVER} --device ${LIRC_DEVICE} --nodaemon
+ExecStart=/bin/sh -c '/usr/sbin/lircd ${LIRCD_OPTIONS} \
+ --driver ${LIRC_DRIVER} --device ${LIRC_DEVICE} --nodaemon'
ExecStopPost=-/bin/sh -c 'test -n "${LIRCD_IR_DEVICE}" && \
echo -lirc > /sys/class/rc/${LIRCD_IR_DEVICE}/protocols || :'
More information about the scm-commits
mailing list