mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
eventlircd: updated lircd_helper patch .config/lircd.conf should always take precedence
This commit is contained in:
parent
8a3e36027a
commit
47ea136e37
@ -2,15 +2,17 @@ diff --git a/udev/lircd_helper.in b/udev/lircd_helper.in
|
|||||||
index f580cc6..d4d7f3f 100644
|
index f580cc6..d4d7f3f 100644
|
||||||
--- a/udev/lircd_helper.in
|
--- a/udev/lircd_helper.in
|
||||||
+++ b/udev/lircd_helper.in
|
+++ b/udev/lircd_helper.in
|
||||||
@@ -41,7 +41,11 @@ case "${ACTION}" in
|
@@ -41,7 +41,13 @@
|
||||||
daemon="${daemon} --uinput"
|
daemon="${daemon} --uinput"
|
||||||
daemon="${daemon} --output=@localstatedir@/run/lirc/lircd-${devname_instance}"
|
daemon="${daemon} --output=@localstatedir@/run/lirc/lircd-${devname_instance}"
|
||||||
daemon="${daemon} --pidfile=@localstatedir@/run/lirc/lircd-${devname_instance}.pid"
|
daemon="${daemon} --pidfile=@localstatedir@/run/lirc/lircd-${devname_instance}.pid"
|
||||||
- daemon="${daemon} ${lircd_conf}"
|
- daemon="${daemon} ${lircd_conf}"
|
||||||
+ if test -e "/storage/.config/lircd.conf" ; then
|
+ if test -e "/storage/.config/lircd.conf" ; then
|
||||||
+ daemon="${daemon} /storage/.config/lircd.conf"
|
+ daemon="${daemon} /storage/.config/lircd.conf"
|
||||||
+ else
|
+ elif test -e "${lircd_conf}" ; then
|
||||||
+ daemon="${daemon} ${lircd_conf}"
|
+ daemon="${daemon} ${lircd_conf}"
|
||||||
|
+ else
|
||||||
|
+ exit 1
|
||||||
+ fi
|
+ fi
|
||||||
${daemon}
|
${daemon}
|
||||||
for devlink in ${DEVLINKS} ; do
|
for devlink in ${DEVLINKS} ; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user