bind_unbind_sample.sh 324 B

12345678910111213
  1. #!/bin/bash
  2. # Find device number in /sys/bus/usb/drivers/drivername
  3. # Edit this file to update the driver numer and name
  4. # Example test for uvcvideo driver
  5. #i=0
  6. # while :; do
  7. # i=$((i+1))
  8. # echo 1-5:1.0 > /sys/bus/usb/drivers/uvcvideo/unbind;
  9. # echo 1-5:1.0 > /sys/bus/usb/drivers/uvcvideo/bind;
  10. # clear
  11. # echo $i
  12. #done