From 57e5edd190fa2c3fff39ecc93660eb8e582cdb33 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 21 Jan 2024 13:05:02 -0800 Subject: [PATCH] add reset usb bus command --- reset_usb_bus | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 reset_usb_bus diff --git a/reset_usb_bus b/reset_usb_bus new file mode 100755 index 0000000..590e51d --- /dev/null +++ b/reset_usb_bus @@ -0,0 +1,7 @@ +#!/bin/bash + +for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do + [ -e "$i" ] || continue + echo "${i##*/}" > "${i%/*}/unbind" + echo "${i##*/}" > "${i%/*}/bind" +done -- 2.39.5