14 lines · bash
1#!/bin/bash2# SPDX-License-Identifier: GPL-2.03# Find device number in /sys/bus/usb/drivers/drivername4# Edit this file to update the driver numer and name5# Example test for uvcvideo driver6#i=07# while :; do8# i=$((i+1))9# echo 1-5:1.0 > /sys/bus/usb/drivers/uvcvideo/unbind;10# echo 1-5:1.0 > /sys/bus/usb/drivers/uvcvideo/bind;11# clear12# echo $i13#done14