mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-06-15 11:43:54 +02:00
Group input devices under /dev/input
This change adds a udev rules file to group input devices (via symlinks) under their usual expected location of /dev/input. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> SVN-Revision: 10804
This commit is contained in:
parent
4ec5f133bb
commit
199a79d867
|
@ -66,6 +66,8 @@ define Package/udev/install
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(1)/usr/bin/
|
||||||
install -d -m0775 $(1)/usr/sbin/
|
install -d -m0775 $(1)/usr/sbin/
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(1)/usr/sbin/
|
||||||
|
install -d -m0775 $(1)/etc/udev/rules.d
|
||||||
|
$(CP) files/20-input-grouping.rules $(1)/etc/udev/rules.d/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/udevtrigger/install
|
define Package/udevtrigger/install
|
||||||
|
|
9
package/udev/files/20-input-grouping.rules
Normal file
9
package/udev/files/20-input-grouping.rules
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Input devices, group under /dev/input
|
||||||
|
SUBSYSTEM!="input", GOTO="input_grouping_end"
|
||||||
|
|
||||||
|
KERNEL=="event[0-9]*", NAME="input/%k"
|
||||||
|
KERNEL=="mice", NAME="input/%k"
|
||||||
|
KERNEL=="mouse[0-9]*", NAME="input/%k"
|
||||||
|
KERNEL=="js[0-9]*", NAME="input/%k"
|
||||||
|
|
||||||
|
LABEL="input_grouping_end"
|
Loading…
Reference in New Issue
Block a user