Skip to content

Instantly share code, notes, and snippets.

@GluTbl
Last active May 22, 2022 05:24
Show Gist options
  • Save GluTbl/a553dcb1e7e06e653eb403cab8f5da1e to your computer and use it in GitHub Desktop.
Save GluTbl/a553dcb1e7e06e653eb403cab8f5da1e to your computer and use it in GitHub Desktop.
[Power Up usb for Ubuntu] #shell
echo "Usb power status:"
echo ""
sudo cat /sys/bus/usb/devices/*/power/level
echo ""
echo ""
while true; do
read -p "Do you wish to change usb power status? " yn
case $yn in
[Yy]* ) make install; break;;
[Nn]* ) exit;;
* ) echo "yes or no.";;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment