https://github.com/slashbeast/mdev-like-a-boss/blob/master/helpers/dev-bus-usb https://raw.githubusercontent.com/slashbeast/mdev-like-a-boss/master/mdev.conf nano /etc/mdev.conf # Populate /dev/bus/usb. SUBSYSTEM=usb;DEVTYPE=usb_device;.* root:root 660 */opt/mdev/dev-bus-usb # Don't create old usbdev* devices. usbdev[0-9].[0-9]* root:root 660 ! # comment these lines # load drivers for usb devices #usb[0-9]+ root:root 0660 */lib/mdev/usbdev cat /opt/mdev/dev-bus-usb --------------------------------------------------------------------------------------------------------- #!/bin/sh # Takes care of /dev/bus/usb devices. # # The mdev.conf gives us limited options on how to handle ownership, so a fix has come as script. # # Features: # - Support smartcard devices. Adjust device group to one that let pcscd open them. # - If Android device is plugged in, make it possible for users in plugdev group to open them (mtp, fastboot, adb
blog about linux tricks