base-files: create a generic udev rules file to set proper perms to the input subsystem.
This commit is contained in:
parent
1a108351e6
commit
420e58f846
3 changed files with 5 additions and 4 deletions
2
srcpkgs/base-files/files/99-input.rules
Normal file
2
srcpkgs/base-files/files/99-input.rules
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SUBSYSTEM=="input", GROUP="input"
|
||||||
|
SUBSYSTEM=="input", KERNEL=="js[0-9]*", MODE="0664"
|
|
@ -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"
|
|
|
@ -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/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue