mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
lirc: start only if /storage/.config/lircd.conf is present
Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
d63f0604ad
commit
a45f0f0c4d
@ -21,11 +21,4 @@ if [ -e "/storage/.config/lirc_options.conf" ] ; then
|
||||
LIRCD_OPTIONS="-O /storage/.config/lirc_options.conf"
|
||||
fi
|
||||
|
||||
if [ -e "/storage/.config/lircd.conf" ] ; then
|
||||
LIRCD_CONF="/storage/.config/lircd.conf"
|
||||
else
|
||||
LIRCD_CONF="/etc/lirc/lircd.conf"
|
||||
fi
|
||||
|
||||
|
||||
exec /usr/sbin/lircd $LIRCD_OPTIONS "$@" $LIRCD_CONF
|
||||
exec /usr/sbin/lircd $LIRCD_OPTIONS "$@" /storage/.config/lircd.conf
|
||||
|
@ -1,7 +1,7 @@
|
||||
[Unit]
|
||||
Documentation=http://lirc.org/html/configure.html
|
||||
Description=Forward LIRC button presses as uinput events
|
||||
ConditionPathExists=/storage/.cache/services/lircd.conf
|
||||
ConditionPathExists=/storage/.config/lircd.conf
|
||||
After=lircd.service
|
||||
|
||||
[Service]
|
||||
|
@ -1,7 +1,7 @@
|
||||
[Unit]
|
||||
Documentation=http://lirc.org/html/configure.html
|
||||
Description=Flexible IR remote input/output application support
|
||||
ConditionPathExists=/storage/.cache/services/lircd.conf
|
||||
ConditionPathExists=/storage/.config/lircd.conf
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
|
Loading…
x
Reference in New Issue
Block a user