diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-09-14 14:30:48 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-09-14 14:30:48 +0400 |
commit | 391594a6024522b1a284711687833c938d50fc4c (patch) | |
tree | d524ec5cd70967d57f63de8bec8e7fd969d11572 | |
parent | 0fa5d461732d95410c07fa36f4ffe44e0286c354 (diff) | |
download | live-391594a6024522b1a284711687833c938d50fc4c.tar.gz |
Create checksum files automatically2014-10-08/netinst
-rwxr-xr-x | protostar | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -10,6 +10,7 @@ TMP="${TMP:-/var/tmp}" DATE=$(date '+%Y-%m-%d-%H%M') DIST="${DIST:-bok}" +OUTDIR="${OUTDIR:-out}" INSTALL_DIST="${INSTALL_DIST:-lacaille}" REPO="${REPO:-http://apt.osdyson.org}" @@ -354,6 +355,9 @@ title Dyson LiveCD and '${INSTALL_DIST}' installer, $DATE GRUB echo "Making final ${ISONAME}..." +rm -rf "${OUTDIR}" +mkdir -p "${OUTDIR}" +cd "${OUTDIR}" genisoimage \ -o "${ISONAME}" \ -b boot/grub/stage2_eltorito \ @@ -369,7 +373,11 @@ genisoimage \ -V "${ISOLABEL}" \ "${ROOT}" -ls -lh "${ISONAME}" +for m in md5 sha1 sha256; do + ${m}sum "${ISONAME}" > "${ISONAME}.$m" +done + +ls -lh "${ISONAME}"* exit 0 |