Circlean/circlean_fs/root_partition/etc/udev/rules.d/50-blockhid.rules

2 lines
227 B
Plaintext
Raw Normal View History

2015-11-06 17:40:33 +01:00
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'"