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:
parent
9bfddd3c8e
commit
ca2632facf
2
srcpkgs/base-files/files/99-joystick.rules
Normal file
2
srcpkgs/base-files/files/99-joystick.rules
Normal 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"
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user