diff options
| author | Daniel Baumann <daniel@debian.org> | 2013-01-02 10:43:47 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2013-01-02 10:45:12 +0100 |
| commit | 1b364a9ada38f8172085ccac031b85a708e22e6b (patch) | |
| tree | dce068ea08ea24df3451a6ecf81a0b891370c9b6 /scripts | |
| parent | c9d72b99501c159a9aebf8f6f3469ca972ea9613 (diff) | |
| download | live-boot-1b364a9ada38f8172085ccac031b85a708e22e6b.tar.gz live-boot-1b364a9ada38f8172085ccac031b85a708e22e6b.zip | |
Supporting legacy filenames for checksums in debian within verify-checksums.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/boot/3010-verify-checksums | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/scripts/boot/3010-verify-checksums b/scripts/boot/3010-verify-checksums index 8ccd663..a27297e 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}sums.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 |
