Skip to content

Instantly share code, notes, and snippets.

@mthierry
Created September 1, 2015 15:38
Show Gist options
  • Save mthierry/fe8d225521f1481e0da5 to your computer and use it in GitHub Desktop.
Save mthierry/fe8d225521f1481e0da5 to your computer and use it in GitHub Desktop.
adb reboot bootloader
read -r -p "Continue flashing? [y/N] " response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y)$ ]]
then
#flash
fastboot flash boot myboot.img
fastboot reboot
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment