https://github.com/tonybenoy/raspberry_pi_disable_ports
Provides an easy way to disable and enable all the USB and ethernet ports
https://github.com/tonybenoy/raspberry_pi_disable_ports
raspberry-pi raspberry-pi-3 shell-script usb-devices
Last synced: 2 months ago
JSON representation
Provides an easy way to disable and enable all the USB and ethernet ports
- Host: GitHub
- URL: https://github.com/tonybenoy/raspberry_pi_disable_ports
- Owner: tonybenoy
- License: gpl-3.0
- Created: 2018-05-01T19:52:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-04T10:34:40.000Z (about 8 years ago)
- Last Synced: 2025-03-25T13:47:24.863Z (over 1 year ago)
- Topics: raspberry-pi, raspberry-pi-3, shell-script, usb-devices
- Language: Shell
- Homepage: http://tonybenoy.com/
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Raspberry_Pi_Disable_Ports
usb.sh Provides an easy way to disable and enable all the USB and ethernet ports.
usb.sh Provides an easy way to disable and enable one specific usb port identified by it's specific driver etc. It is essentially a wrapper around https://github.com/mvp/uhubctl .
# Usage for usb.sh
$ git https://github.com/tonybenoy/Raspberry_Pi_Disable_Ports.git
$ cd Raspberry_Pi_Disable_Ports
$ chmod 700 usb.sh
$ ./usb.sh
To stop usb devices
$ stopusb
to stop usb devices
$ startusb
# Usage for usb_port.sh
$ git https://github.com/tonybenoy/Raspberry_Pi_Disable_Ports.git
$ cd Raspberry_Pi_Disable_Ports
$nano usb_port.sh
Find a specific identifier for your usb device by running
$ lsusb -t
Onceit is found set it appropriately in USB_IDENTIFIER
$ chmod 700 usb_port.sh
$ ./usb_port.sh
To stop usb devices
$ stopusb
to stop usb devices
$ startusb