base-files: create a generic udev rules file to set proper perms to the input subsystem.

This commit is contained in:
Juan RP 2014-07-17 19:33:32 +02:00
parent 1a108351e6
commit 420e58f846
3 changed files with 5 additions and 4 deletions

View file

@ -0,0 +1,2 @@
SUBSYSTEM=="input", GROUP="input"
SUBSYSTEM=="input", KERNEL=="js[0-9]*", MODE="0664"

View file

@ -1,2 +0,0 @@
KERNEL=="event[0-9]*", ENV{ID_BUS}=="?*", ENV{ID_INPUT_JOYSTICK}=="?*", GROUP="video", MODE="0660"
KERNEL=="js[0-9]*", ENV{ID_BUS}=="?*", ENV{ID_INPUT_JOYSTICK}=="?*", GROUP="video", MODE="0664"

View file

@ -1,6 +1,6 @@
# Template file for 'base-files' # Template file for 'base-files'
pkgname=base-files pkgname=base-files
version=0.101 version=0.102
revision=1 revision=1
bootstrap=yes bootstrap=yes
build_style="meta" build_style="meta"
@ -69,5 +69,6 @@ do_install() {
ln -sf /proc/self/mounts ${DESTDIR}/etc/mtab ln -sf /proc/self/mounts ${DESTDIR}/etc/mtab
# udev rules # udev rules
vinstall ${FILESDIR}/99-joystick.rules 644 usr/lib/udev/rules.d vmkdir usr/lib/udev/rules.d
install -m644 ${FILESDIR}/*.rules ${DESTDIR}/usr/lib/udev/rules.d/
} }