ir-keytable -a can fail if it's run before the input and event
devices are created. Fix this by changing the udev rule to trigger
on event device creation instead of rc device creation.
Also drop the udev rules patch and simply replace the udev rule
with our version, this is easier to maintain.
Signed-off-by: Matthias Reichl <hias@horus.com>
In certain situations, it is desirable for hostnames to be resolvable in
the initramfs (e.g., when a hostname is specified as the NFS server in
the "boot" or "disk" kernel parameters). If the network is up when the
init script is executed (e.g., when the "ip" kernel parameter is
specified) and a DNS server is known, write it to /etc/resolv.conf so it
can be used for DNS requests.
Add helper scripts for lircd and lircd-uinput so that we can
override lirc_options.conf and lircd.conf via files in
/storage/.config
Use separate systemd units for lircd and lircd-uinput, like in
upstream, and just add a ConditionPathExists to enable/disable
the services.
The lirc socket is managed by systemd via lircd.socket, like
in upstream.
Remove udev file for enabling lirc, this is now handled via
systemd only.
Based on upstream lirc_options.conf with the following changes:
- socket set to /run/lirc/lircd.socket, the default clashes with eventlircd
- pidfile in /run instead of /var/run
- driver set to default
- device set to /dev/lirc0
All locally added remote keycodes are now in separate files,
one per remote, instead of adding them to rc6_mce.
A new keymap, libreelec_multi, with all keycodes of the previous
rc6_mce map is added in install and used by default when the
remote is configured to use the rc-rc6-mce table.
The default behaviour is unchanged, LE can still be controlled with
MCE, xbox, ... remotes out of the box but it's now possible to configure
the ir receiver to react only on the codes sent by a specific remote.
This solves the issue where a xbox remote always controlled LE even
when a user only wanted to control it with a MCE remote.
To do this simply create a /storage/.config/rc_maps.cfg file with
the following content:
* rc-rc6-mce rc6_mce
Signed-off-by: Matthias Reichl <hias@horus.com>