From d777f284b0dd4db73b6e0a48b239e66bbf1544ea Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 2 Jan 2024 22:24:03 +0100 Subject: [PATCH] udev rules --- 99-js-block.rules | 1 + 99-xbox360-block.rules | 1 + 2 files changed, 2 insertions(+) create mode 100644 99-js-block.rules create mode 100644 99-xbox360-block.rules diff --git a/99-js-block.rules b/99-js-block.rules new file mode 100644 index 0000000..da1ef16 --- /dev/null +++ b/99-js-block.rules @@ -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" \ No newline at end of file diff --git a/99-xbox360-block.rules b/99-xbox360-block.rules new file mode 100644 index 0000000..b4e576a --- /dev/null +++ b/99-xbox360-block.rules @@ -0,0 +1 @@ +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="045E", ATTRS{idProduct}=="028E", RUN+="/bin/sh -c 'echo 0 > /sys$DEVPATH/authorized'" \ No newline at end of file