udev rules

This commit is contained in:
Denis 2024-01-02 22:24:03 +01:00
parent 6640812315
commit d777f284b0
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
2 changed files with 2 additions and 0 deletions

1
99-js-block.rules Normal file
View file

@ -0,0 +1 @@
KERNEL=="js[0-9]*|event[0-9]*", SUBSYSTEM=="input", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="028e", MODE="000", GROUP="root", TAG="", RUN+="/bin/chmod 000 /dev/input/%k"

1
99-xbox360-block.rules Normal file
View file

@ -0,0 +1 @@
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="045E", ATTRS{idProduct}=="028E", RUN+="/bin/sh -c 'echo 0 > /sys$DEVPATH/authorized'"