@echo off
title - Kernel Update -
echo Start updating kernel...
adb shell mkdir /mnt/nand && ^
adb shell mount -t vfat /dev/block/nanda /mnt/nand && ^
adb push bImage /mnt/nand/linux && ^
adb shell sync && ^
adb shell reboot
IF ERRORLEVEL 1 goto FAIL
IF ERRORLEVEL 0 goto SUCCESS
:FAIL
echo.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo FAILED! Kernel was not updated.
echo.
pause
goto DONE
:SUCCESS
echo.
echo Done. Kernel was updated successfully.
ping -n 4 localhost > nul
goto DONE
:DONE