Bash-script för flashning av ny radio, SPL och recovery.
Följande använder jag för att flasha till ny radio:
OBS! Detta är ett bash-script som ska köras i Linux..
Kod:
#!/bin/bash
if fastboot flash radio Radio_HTC_PVT_32A_6.35.08.29.img
then
echo "Radio flasing OK."
if fastboot flash hboot hboot-1.33.2005.img
then
echo "SPL flashing OK."
if fastboot flash recovery recovery-RA-Magic32A-6.35-v1.6.2.img
then
echo "Recoverry flashing OK."
if fastboot erase system -w
then
echo "System erase OK."
if fastboot reboot-bootloader
then
echo "System reboot OK."
echo "All operations complete."
exit
else
echo "Reboot failed."
exit
fi
else
echo "System erase error."
exit
fi
else
echo "Recovery flashing error."
exit
fi
else
echo "SPL flashing error."
exit
fi
else
echo "Radio flashing error."
exit
fi
Sen har jag en liknande för att flasha till gammal radio, det är bara filnamnen som skiljer...