distribution/packages/sysutils/v4l-utils/udev.d/70-infrared.rules
2022-02-05 09:23:32 -05:00

19 lines
581 B
Text

# Automatically load the proper keymaps after the Remote Controller device
# creation.
#
# User-defined rules can be stored in /storage/.config/rc_maps.cfg. If that
# file doesn't exist the default rules from /etc/rc_maps.cfg are used.
ACTION=="add", KERNEL=="event*", SUBSYSTEM=="input", SUBSYSTEMS=="rc", ENV{.rc_sysdev}="$id", GOTO="begin"
GOTO="end"
LABEL="begin"
ENV{.rc_maps_cfg}="/etc/rc_maps.cfg"
TEST=="/storage/.config/rc_maps.cfg", ENV{.rc_maps_cfg}="/storage/.config/rc_maps.cfg"
RUN+="/usr/bin/ir-keytable -a $env{.rc_maps_cfg} -s $env{.rc_sysdev}"
LABEL="end"