diff options
Diffstat (limited to 'files/etc')
-rw-r--r-- | files/etc/rc.local | 5 |
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 |