From 111aed9dc91baa7277bcdaca0a52054d9794d44a Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Mon, 30 Apr 2012 00:24:19 +0300 Subject: [PATCH] lirc: support for custom lircd file in /storage/.config/ --- .../eventlircd-42-002-custom_config.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/sysutils/remote/eventlircd/patches/eventlircd-42-002-custom_config.patch diff --git a/packages/sysutils/remote/eventlircd/patches/eventlircd-42-002-custom_config.patch b/packages/sysutils/remote/eventlircd/patches/eventlircd-42-002-custom_config.patch new file mode 100644 index 0000000000..c0fd57d45c --- /dev/null +++ b/packages/sysutils/remote/eventlircd/patches/eventlircd-42-002-custom_config.patch @@ -0,0 +1,17 @@ +diff --git a/udev/lircd_helper.in b/udev/lircd_helper.in +index f580cc6..6befeed 100644 +--- a/udev/lircd_helper.in ++++ b/udev/lircd_helper.in +@@ -41,7 +41,11 @@ case "${ACTION}" in + daemon="${daemon} --uinput" + daemon="${daemon} --output=@localstatedir@/run/lirc/lircd-${devname_instance}" + daemon="${daemon} --pidfile=@localstatedir@/run/lirc/lircd-${devname_instance}.pid" +- daemon="${daemon} ${lircd_conf}" ++ if test -e "/storage/.config/lircd.conf" ; then ++ daemon="${daemon} /storage/.config/lircd.conf" ++ else ++ daemon="${daemon} ${lircd_conf}" ++ fi + ${daemon} + for devlink in ${DEVLINKS} ; do + devlink_instance=`echo ${devlink} | /bin/sed -e 's/\/\+/~/g' -e 's/^~dev~//'`