Skip to content

Instantly share code, notes, and snippets.

@jagogardiner
Created November 5, 2019 20:55
Show Gist options
  • Save jagogardiner/276870d2f68d86009f165e9c30efc33d to your computer and use it in GitHub Desktop.
Save jagogardiner/276870d2f68d86009f165e9c30efc33d to your computer and use it in GitHub Desktop.
#!/bin/bash
loop=true
while [ "$loop" = "true" ]
do
result=$(lsusb | grep -c "DFU")
if [ "$result" = "1" ]; then
loop=false
echo "we in dfu bois"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment