Commit 57f4a8e4 authored by William Swango's avatar William Swango

Clean up the wording a little bit, and remove some leftover debug code.

parent 1164e050
......@@ -15,7 +15,7 @@ echo
echo "You can re-run this script as many times as you want, however,"
echo "if you are not getting a hash match, you should try a different PC,"
echo "or a different cable, or a different USB port."
read -n1 -r -p "Press space to continue..." key
read -n1 -r -p "Press any key to continue..." key
if [ "$KEY" = '' ]; then
echo "Flashing... this will take a while."
......@@ -41,7 +41,6 @@ function flash () {
./partitions.py --dump ${TWRPTMP} lafbak
echo "Trimming trailing zeros"
dd if=${TWRPTMP} of=${TWRPTEST} bs=1024 count=29100 > /dev/null 2>&1 # This strips the trailing whitespace so the dump is the same size as TWRP
# dd if=${TWRPTMP} of=${TWRPTEST} bs=1 count=5 # This strips the trailing whitespace so the dump is the same size as TWRP
SHA1=`sha256sum ${TWRP} | awk '{print $1}'`
SHA2=`sha256sum ${TWRPTEST} | awk '{print $1}'`
STRHASH1="S${SHA1}"
......@@ -69,7 +68,7 @@ function flash () {
rm ${TWRPTEST} > /dev/null 2>&1
echo "Flash sucessful! Unplug your USB cable and your phone will power off."
echo "Once your phone is off, go back into download mode - hold vol up and plug the USB cable back in."
echo "You will be in TWRP -- follow the instructions before proceeding to step2.sh"
echo "Wait until TWRP has fully booted, and then run ./step2.sh"
./lglaf.py -c '!CTRL POFF'
exit
}
......
#!/bin/bash
# another n00b script that roots the phone...
echo "Make sure your phone has full booted into TWRP."
echo
read -n1 -r -p "Press any key to continue..." key
if [ "$KEY" = '' ]; then
echo "Rooting your phone. It will reboot back into TWRP."
echo "Don't do anything until your phone has booted back to the OS."
else
echo "Exiting"
exit
fi
echo "Unmounting data"
adb shell umount /data
echo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment