From d68d8993d161bd8bc316ff3196f152344271ab1a Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Tue, 4 Jul 2006 19:21:14 +0000 Subject: [PATCH] Benjamin Schieder: bootdisk: give clear message if MD5Sum is correct or not [2006062010455715581] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7696 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- target/bootdisk/linuxrc.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target/bootdisk/linuxrc.sh b/target/bootdisk/linuxrc.sh index 4c540f626..c33f6ed01 100644 --- a/target/bootdisk/linuxrc.sh +++ b/target/bootdisk/linuxrc.sh @@ -392,8 +392,13 @@ checkisomd5() { # {{{ echo "Running check..." /bin/checkisomd5 ${devicefile} + code=${?} + if [ ${code} -eq 1 ] ; then + echo "MD5Sum is correct." + elif [ ${code} -eq 0 ] ; then + echo "MD5Sum is NOT correct! Please contact the authors!" + fi - echo "done" echo "Press Return key to continue." read } # }}}