From d37baa8da4f61837577983045056885d60aa671f Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Fri, 11 May 2007 18:52:29 +0000 Subject: [PATCH] Stefan Fiedler: target/bootdisk: correctly interpret checkisomd5 results [2007031121371713600] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8365 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- target/bootdisk/linuxrc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/bootdisk/linuxrc.sh b/target/bootdisk/linuxrc.sh index e1acec7cc..501b08c4d 100644 --- a/target/bootdisk/linuxrc.sh +++ b/target/bootdisk/linuxrc.sh @@ -384,11 +384,11 @@ checkisomd5() { # {{{ getcdromdevice 1 0 0 || return echo "Running check..." - /bin/checkisomd5 ${devicefile} + /bin/checkisomd5 --verbose ${devicefile} code=${?} - if [ ${code} -eq 1 ] ; then + if [ ${code} -eq 0 ] ; then echo "MD5Sum is correct." - elif [ ${code} -eq 0 ] ; then + elif [ ${code} -eq 1 ] ; then echo "MD5Sum is NOT correct! Please contact the authors!" fi