base-files: new udev rules file to give proper perms to joysticks.

The user must be in the 'video' group to have access to those devices.
This fixes joystick access in Steam Big Picture mode.

This is only necessary when running with !systemd.
This commit is contained in:
Juan RP 2014-04-26 11:32:03 +02:00
parent 9bfddd3c8e
commit ca2632facf
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,2 @@
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.96 version=0.97
revision=1 revision=1
bootstrap=yes bootstrap=yes
build_style="meta" build_style="meta"
@ -67,4 +67,7 @@ do_install() {
# Create /proc/self/mounts -> /etc/mtab symlink. # Create /proc/self/mounts -> /etc/mtab symlink.
ln -sf /proc/self/mounts ${DESTDIR}/etc/mtab ln -sf /proc/self/mounts ${DESTDIR}/etc/mtab
# udev rules
vinstall ${FILESDIR}/99-joystick.rules 644 usr/lib/udev/rules.d
} }