Skip to content

Commit

Permalink
Supporting legacy filenames for checksums in debian within verify-che…
Browse files Browse the repository at this point in the history
…cksums.
  • Loading branch information
daniel-baumann committed May 6, 2013
1 parent a0bd205 commit 5e1409e
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions scripts/boot/3010-verify-checksums
Expand Up @@ -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
Expand Down

0 comments on commit 5e1409e

Please sign in to comment.