Last active
May 22, 2022 05:24
-
-
Save GluTbl/a553dcb1e7e06e653eb403cab8f5da1e to your computer and use it in GitHub Desktop.
[Power Up usb for Ubuntu] #shell
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
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