]> spindle.queued.net Git - xodist/commitdiff
whitespace in OFW updater script
authorErik Garrison <erik@laptop.org>
Thu, 12 Feb 2009 18:55:51 +0000 (13:55 -0500)
committerAndres Salomon <dilinger@debian.org>
Thu, 12 Feb 2009 18:55:51 +0000 (13:55 -0500)
While producing
http://wiki.laptop.org/go/User:Erik_Garrison/Image_Digestor I discovered
that the OFW updater script produced by the xodist tools had trailing
whitespace after the lines.

I rectified this by applying the attached patch to the line in question.
After application I verified that the output of the bios-crypto 'hashfs'
C script is byte-for-byte identical when run over the same input (in
this case the os767.img).

Signed-off-by: Andres Salomon <dilinger@debian.org>
mkjffs2.sh

index c635665fc1de7257484f470cb2455d50ad8be3e7..c1ced52272ca526d821efe746e946d7ddddff4b1 100755 (executable)
@@ -65,7 +65,7 @@ do_sha256()
        f=$1
        eblocks=$((`stat --printf "%s\n" $f` / (128*1024)))
        for b in $(seq 0 $(($eblocks - 1))); do
-               sha=$(dd status=noxfer bs=128KiB skip=$b count=1 if=$f 2>/dev/null | sha256sum | cut -d- -f1)
+               sha=$(dd status=noxfer bs=128KiB skip=$b count=1 if=$f 2>/dev/null | sha256sum | cut -d -f1)
                echo "eblock: `printf '%x' $b` sha256 $sha" >> ${IMG_NAME}
        done
 }