xref: /linux/tools/testing/selftests/media_tests/bind_unbind_sample.sh (revision 020c5260c2b16469b99c65c37982b4be4c435b56)
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
13