# HG changeset patch # User Mark Miller # Date 1231212225 21600 # Node ID 128b3b0700bf49e9bec9ed2e58e312bb240104f5 # Parent 856ba27e397b1073585cde6a2dbb407bb7db8f27 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. diff -r 856ba27e397b -r 128b3b0700bf sources/toys/trximg.sh --- 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