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