This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Thanks to: | |
# https://gist.github.com/erwin/a66a4c3f8a5d940ab6c434b48568ff39 | |
# https://bbs.archlinux.org/viewtopic.php?pid=1956897#p1956897 | |
# HOW TO: | |
# 1) Copy this file to /usr/local/bin/usb_reset.sh | |
# 2) make it executable: sudo chmod +x /usr/local/bin/usb_reset.sh | |
# 3) Create new service: sudo nano /etc/systemd/system/usb_reset.service |