summaryrefslogtreecommitdiff
path: root/usbreset.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usbreset.sh')
-rwxr-xr-xusbreset.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/usbreset.sh b/usbreset.sh
new file mode 100755
index 0000000..b481513
--- /dev/null
+++ b/usbreset.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+invoke-rc.d hotplug stop
+for mod in sd_mod usb-storage scsi_mod uhci ehci-hcd usbcore; do
+ modprobe -r $mod
+done
+invoke-rc.d hotplug start