1 2 3 4
#!/bin/bash echo 0 > /sys/bus/usb/devices/$1/authorized echo 1 > /sys/bus/usb/devices/$1/authorized