dotfiles/.local/bin/flashit

21 lines
372 B
Plaintext
Raw Normal View History

#!/bin/bash
echo "Dispatching brickware!.."
echo ""
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash system system.img
fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img
echo ""
read -r -p "Reboot? [Y/n] " response
case $response in
[nN][oO]|[nN])
exit 1
;;
*)
echo "Good luck!.."; fastboot reboot
;;
esac