Skip to content

Instantly share code, notes, and snippets.

@mthierry
Created April 14, 2016 12:19
Show Gist options
  • Save mthierry/6ec5533955d5b874645f967a14194f9f to your computer and use it in GitHub Desktop.
Save mthierry/6ec5533955d5b874645f967a14194f9f to your computer and use it in GitHub Desktop.
#boot
#fastboot boot /usr2/Shared/android_ring1_ppgtt_bk/image/dist/bxt_rvp-flashfiles-eng.michelth/loader.efi
adb reboot bootloader
read -r -p "Continue flashing? [y/N] " response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y)$ ]]
then
#fastboot oem unlock
sleep 5
#flash
fastboot flash boot boot.img
fi
read -r -p "Reboot? [y/N] " response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y)$ ]]
then
#flash
fastboot reboot
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment