Skip to content

Instantly share code, notes, and snippets.

View UdeRecife's full-sized avatar
🐵
Tentando me atentar a tentar me atentando

U de Recife UdeRecife

🐵
Tentando me atentar a tentar me atentando
View GitHub Profile
@UdeRecife
UdeRecife / usb-reset
Last active February 10, 2016 23:29
Script to reset usb ports, covering all possible cases.
#!/bin/sh
if [ "$(id -u)" != 0 ] ; then
echo This must be run as root!
exit 1
fi
#
# Look for the most comment cases
#