From d949010f756df30fa702c3804ba33deda7c33608 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 8 Jul 2017 17:50:00 +0200 Subject: Add reset-usb-dev.sh Signed-off-by: Florian Pritz --- reset-usb-dev.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 reset-usb-dev.sh 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 -- cgit v1.2.3-24-g4f1b