mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +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"
|
LIRCD_OPTIONS="-O /storage/.config/lirc_options.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e "/storage/.config/lircd.conf" ] ; then
|
exec /usr/sbin/lircd $LIRCD_OPTIONS "$@" /storage/.config/lircd.conf
|
||||||
LIRCD_CONF="/storage/.config/lircd.conf"
|
|
||||||
else
|
|
||||||
LIRCD_CONF="/etc/lirc/lircd.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
exec /usr/sbin/lircd $LIRCD_OPTIONS "$@" $LIRCD_CONF
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Documentation=http://lirc.org/html/configure.html
|
Documentation=http://lirc.org/html/configure.html
|
||||||
Description=Forward LIRC button presses as uinput events
|
Description=Forward LIRC button presses as uinput events
|
||||||
ConditionPathExists=/storage/.cache/services/lircd.conf
|
ConditionPathExists=/storage/.config/lircd.conf
|
||||||
After=lircd.service
|
After=lircd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Documentation=http://lirc.org/html/configure.html
|
Documentation=http://lirc.org/html/configure.html
|
||||||
Description=Flexible IR remote input/output application support
|
Description=Flexible IR remote input/output application support
|
||||||
ConditionPathExists=/storage/.cache/services/lircd.conf
|
ConditionPathExists=/storage/.config/lircd.conf
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user