flash kernel when upgrading v2

This commit is contained in:
Alfonso Gamboa
2022-06-16 01:37:54 -07:00
parent 41d723263e
commit 4e1b1c1a60
3 changed files with 7 additions and 2 deletions

View File

@@ -105,6 +105,11 @@ if [[ "$V2" == "true" ]]; then
echo UPGRADE MODE
if [[ "$V2" == "true" ]]; then
echo "Upgrading kernel"
flashcp -v /opt/Upgrade/wz_mini_hacks-master/v2_install/v2_kernel.bin /dev/mtd1
fi
umount -l /opt/wz_mini/tmp
ls -l /opt/wz_mini/
rm -rf /opt/wz_mini/*