aboutsummaryrefslogtreecommitdiff
path: root/usb-status
diff options
context:
space:
mode:
Diffstat (limited to 'usb-status')
l---------[-rwxr-xr-x]usb-status18
1 files changed, 1 insertions, 17 deletions
diff --git a/usb-status b/usb-status
index cc4525e..f54f446 100755..120000
--- a/usb-status
+++ b/usb-status
@@ -1,17 +1 @@
-#!/bin/bash
-#
-# USB hotplug switcher.
-# See https://links.sarava.org/tags/badusb
-#
-
-# Parameters
-BASENAME="`basename $0`"
-
-# Dispatch
-if [ "$BASENAME" == 'usb-enable' ]; then
- sudo su -c "echo '-1' > /sys/module/usbcore/parameters/authorized_default"
-elif [ "$BASENAME" == 'usb-disable' ]; then
- sudo su -c "echo '0' > /sys/module/usbcore/parameters/authorized_default"
-elif [ "$BASENAME" == 'usb-status' ]; then
- cat /sys/module/usbcore/parameters/authorized_default
-fi
+usb-disable \ No newline at end of file