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
Since diagonal key support was added in kernel 4.7 KEY_LEFT_UP
and KEY_RIGHT_UP are valid input symbols.
This means we can no longer use _UP as a suffix for transporting
release events from lircd to lircd-uinput, lircd-uinput now
interprets KEY_LEFT_UP/KEY_RIGHT_UP as a diagnoal key down event
instead of left/right key release.
It's not used by LibreELEC and it trigger a build failure on recent
GNU/Linux distribution like Fedora 24.
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>