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