Skip to content

Instantly share code, notes, and snippets.

@h0st1le
Forked from tejo/flash.sh
Created December 28, 2016 06:14
Show Gist options
  • Save h0st1le/10dba85aa8e93c47263bb35630bf34e7 to your computer and use it in GitHub Desktop.
Save h0st1le/10dba85aa8e93c47263bb35630bf34e7 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
set -o pipefail
dfu-util --alt 0 -s 0x08000000:force:unprotect -D "$1"
sleep 5
dfu-util -R -a 0 -D "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment