X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2F3010-verify-checksums;fp=scripts%2Fboot%2F3010-verify-checksums;h=08b2972ecd4f417d3c66f992cebfdea6a6b2af11;hb=4a5a84171f9e5f3f7ff20e9c1d855787e270cd0c;hp=8ccd6633e0ee4611d73a330e81b68e5e82c894a2;hpb=0bcd6dd258e0a52765781cb28dd349a141ba56b4;p=live-boot-grml.git diff --git a/scripts/boot/3010-verify-checksums b/scripts/boot/3010-verify-checksums index 8ccd663..08b2972 100755 --- a/scripts/boot/3010-verify-checksums +++ b/scripts/boot/3010-verify-checksums @@ -38,26 +38,29 @@ Verify_checksums () for _DIGEST in $(echo ${LIVE_VERIFY_CHECKSUMS_DIGESTS} | sed -e 's|,| |g') do - _CHECKSUMS="$(echo ${_DIGEST} | tr [a-z] [A-Z])SUMS" + _CHECKSUMS="$(echo ${_DIGEST} | tr [a-z] [A-Z])SUMS ${_DIGEST}sum.txt" - if [ -e "${_CHECKSUMS}" ] - then - echo "Found ${_CHECKSUMS}..." > "${_TTY}" - - if [ -e "/bin/${_DIGEST}sum" ] + for _CHECKSUM in ${_CHECKSUMS} + do + if [ -e "${_CHECKSUM}" ] then - echo "Checking ${_CHECKSUMS}..." > "${_TTY}" + echo "Found ${_CHECKSUM}..." > "${_TTY}" + + if [ -e "/bin/${_DIGEST}sum" ] + then + echo "Checking ${_CHECKSUM}..." > "${_TTY}" - # Verify checksums - /bin/${_DIGEST}sum -c "${_CHECKSUMS}" < "${_TTY}" > "${_TTY}" - _RETURN="${?}" + # Verify checksums + /bin/${_DIGEST}sum -c "${_CHECKSUM}" < "${_TTY}" > "${_TTY}" + _RETURN="${?}" - # Stop after first verification - break - else - echo "Not found /bin/${_DIGEST}sum..." > "${_TTY}" + # Stop after first verification + break + else + echo "Not found /bin/${_DIGEST}sum..." > "${_TTY}" + fi fi - fi + done done log_end_msg