Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liberodark/blockusb
https://github.com/liberodark/blockusb
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/liberodark/blockusb
- Owner: liberodark
- License: gpl-3.0
- Created: 2022-08-29T08:03:29.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T09:25:47.000Z (over 2 years ago)
- Last Synced: 2024-10-30T00:37:02.785Z (3 months ago)
- Language: Shell
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blockusb
## Install
### Dowload :
`wget -O /usr/bin/usb-umount.sh https://raw.githubusercontent.com/liberodark/blockusb/master/usb-umount.sh`### Make executable :
`chmod +x /usr/bin/usb-umount.sh`### Create file usb-umount.rules :
`nano /etc/udev/rules.d/100-usb-umount.rules`### Add in usb-umount.rules :
`KERNEL=="sd*", ACTION=="add", RUN+="/usr/bin/usb-umount.sh"`### Reload udevadm :
`udevadm control --reload-rules`### Detect usb :
`ls -lha /dev/disk/by-id/usb-*`