Created
May 22, 2019 18:35
-
-
Save joshskidmore/75aa1fe8fec499c557c55824ad83c9b3 to your computer and use it in GitHub Desktop.
gpd-pocket2-fix-optical-sensor.sh
This file contains hidden or 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
#!/usr/bin/env bash | |
id=$(lsusb.py | grep -i hail | awk '{ print $1 }') | |
echo "on" | sudo tee /sys/bus/usb/devices/${id}/power/control |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment