aboutsummaryrefslogtreecommitdiff
path: root/files/etc
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-07-12 15:28:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-07-12 15:28:40 -0300
commit89e7bbc049ec7ccdee31795ca3446513147714e7 (patch)
treefa18d4ab62f7933e14db734bf7a4f5363613cdb0 /files/etc
parentfba630f16dc6d23e474ed130b6b43ade7676f620 (diff)
parentd40e1d8d5a91ddb040ee27a990ef7be571761157 (diff)
downloadpuppet-nodo-89e7bbc049ec7ccdee31795ca3446513147714e7.tar.gz
puppet-nodo-89e7bbc049ec7ccdee31795ca3446513147714e7.tar.bz2
Merge branch 'master' into develop
Diffstat (limited to 'files/etc')
-rw-r--r--files/etc/rc.local5
1 files changed, 5 insertions, 0 deletions
diff --git a/files/etc/rc.local b/files/etc/rc.local
index 4ce3a3a..b2ca780 100644
--- a/files/etc/rc.local
+++ b/files/etc/rc.local
@@ -40,5 +40,10 @@ if [ -f "/etc/screenrc.startup" ]; then
( . /etc/default/locale && cd /root && HOME=/root LANG=$LANG /usr/bin/screen -d -m -S root -c /etc/screenrc.startup )
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
+fi
+
# Then exit
exit 0