summaryrefslogtreecommitdiff
path: root/helpers/lh_md5sums
blob: 8097e6c0e6ed9074efc61f449c12436bebf81190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# lh_md5sums.sh

# Calculating md5sums
cd "${LIVE_ROOT}"/binary
find . -type f -print0 | xargs -0 md5sum > "${LIVE_ROOT}"/md5sum.txt
cd "${OLDPWD}"

if [ -d "${LIVE_INCLUDE_IMAGE}" ]
then
	cd "${LIVE_INCLUDE_IMAGE}"
	find . -type f -print0 | xargs -0 md5sum >> "${LIVE_ROOT}"/md5sum.txt
	cd "${OLDPWD}"
fi

mv "${LIVE_ROOT}"/md5sum.txt "${LIVE_ROOT}"/binary