From 7efbd42c4cac6be48db80134fd1c718e2d4b3784 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 20 Nov 2010 23:09:21 +0100 Subject: [PATCH] config/release: add MD5 check to 'create_installstick.bat', many thanks to ilya Signed-off-by: Stephan Raue --- config/release/create_installstick.bat | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/config/release/create_installstick.bat b/config/release/create_installstick.bat index dfc71eac71..a78c4c9525 100644 --- a/config/release/create_installstick.bat +++ b/config/release/create_installstick.bat @@ -49,6 +49,10 @@ cmd /k "start %CD%\3rdparty\syslinux\win32" GOTO END :INSTALL +3rdparty\md5sum\md5sum.exe -c --status %CD%\target\SYSTEM.md5 +IF ERRORLEVEL 1 GOTO BADMD5 +3rdparty\md5sum\md5sum.exe -c --status %CD%\target\KERNEL.md5 +IF ERRORLEVEL 1 GOTO BADMD5 CLS ECHO. ECHO OpenELEC.tv USB Installer @@ -72,8 +76,22 @@ format %DRIVE% /V:INSTALL /Q /FS:FAT32 3rdparty\syslinux\win32\syslinux.exe -f -m -a %DRIVE% copy target\* %DRIVE% copy sample.conf\syslinux_installer.cfg %DRIVE%\syslinux.cfg -SET DRIVE= GOTO END +:BADMD5 +CLS +ECHO. +ECHO. +ECHO ***** OpenELEC.tv failed md5 check - Installation will quit ***** +ECHO. +ECHO. +ECHO. +ECHO Your original download was probably corrupt. +ECHO Please visit www.openelec.tv and get another copy +ECHO. +ECHO. +PAUSE + :END +SET DRIVE= SET OS= \ No newline at end of file