virtually plug-unplug a USB device


For plug-unplug a USB device without phisically connect-disconnect the USB device ( the first command unplug while the last reconnect the device ):

echo 0 > /sys/bus/usb/devices/2-2/authorized

echo 1 > /sys/bus/usb/devices/2-2/authorized