add initial block hid rule

pull/39/head
Raphaël Vinot 2015-10-30 11:14:34 +01:00
parent 17602da661
commit 960f98dd36
1 changed files with 1 additions and 0 deletions

View File

@ -0,0 +1 @@
SUBSYSTEM=="hidraw", DRIVERS=="usbhid", RUN+="/bin/bash -c 'cd /sys/devices/platform/bcm2708_usb/usb1/1-1 ; for d in $(ls -d 1-1.[2-5]); do if [ $(ls -lR $d | grep -c usbhid) -gt 0 ] ; then echo 0 > $d/authorized ; fi ; done'"