aboutsummaryrefslogtreecommitdiff
path: root/files/etc/rc.local
diff options
context:
space:
mode:
Diffstat (limited to 'files/etc/rc.local')
-rw-r--r--files/etc/rc.local4
1 files changed, 4 insertions, 0 deletions
diff --git a/files/etc/rc.local b/files/etc/rc.local
index b2ca780..55fdcd9 100644
--- a/files/etc/rc.local
+++ b/files/etc/rc.local
@@ -43,6 +43,10 @@ fi
# See https://links.sarava.org/tags/badusb
if [ -e "/sys/module/usbcore/parameters/authorized_default" ]; then
echo "0" > /sys/module/usbcore/parameters/authorized_default
+
+ for bus in /sys/bus/usb/devices/usb*; do
+ echo 0 > $bus/authorized_default
+ done
fi
# Then exit