summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-07-08 17:50:00 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-07-08 17:50:00 +0200
commitd949010f756df30fa702c3804ba33deda7c33608 (patch)
treed0565a01e1b5d40497e985fc22d7c15550303805
parent3164f655ed86a033570ed89e86b7fd7058b69ced (diff)
downloadbin-d949010f756df30fa702c3804ba33deda7c33608.tar.gz
bin-d949010f756df30fa702c3804ba33deda7c33608.tar.xz
Add reset-usb-dev.sh
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xreset-usb-dev.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/reset-usb-dev.sh b/reset-usb-dev.sh
new file mode 100755
index 0000000..75ec52d
--- /dev/null
+++ b/reset-usb-dev.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+echo 0 > /sys/bus/usb/devices/$1/authorized
+echo 1 > /sys/bus/usb/devices/$1/authorized