Mercurial > hg > aboriginal
changeset 569:128b3b0700bf
Re-added the padding to the CRC32 section, and added flags for the toybox cksum to compute the IEEE 802.3 little-endian pre-inversion no post-inversion no-length cksum.
author | Mark Miller <mark@mirell.org> |
---|---|
date | Mon, 05 Jan 2009 21:23:45 -0600 |
parents | 856ba27e397b |
children | 0b384865cf0c |
files | sources/toys/trximg.sh |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sources/toys/trximg.sh Mon Jan 05 19:21:07 2009 -0600 +++ b/sources/toys/trximg.sh Mon Jan 05 21:23:45 2009 -0600 @@ -134,8 +134,9 @@ emit_header skip zpad_file 4 "$1" zpad_file 4 "$2" - zpad_file 4 "$2" - ) | cksum + zpad_file 4 "$3" + zpad $(padlen 4096 $TOTAL) + ) | cksum -NILP ) # Output the image to stdout