aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-07-17 08:18:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-07-17 08:18:53 -0300
commit2621e23b5bcfef8c9c5f23cd670c22ce3c112aa3 (patch)
treeadcf6b08f1e8faefad6b5ec36378031b504ba735 /files
parent89e7bbc049ec7ccdee31795ca3446513147714e7 (diff)
parentddbce5753dbabf405fdd3477064b20fba9edc38c (diff)
downloadpuppet-nodo-2621e23b5bcfef8c9c5f23cd670c22ce3c112aa3.tar.gz
puppet-nodo-2621e23b5bcfef8c9c5f23cd670c22ce3c112aa3.tar.bz2
Merge branch 'master' into develop
Diffstat (limited to 'files')
-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