]> spindle.queued.net Git - xodist/commitdiff
suppress dd(1) stderr
authorJames Cameron <quozl@laptop.org>
Wed, 29 Oct 2008 09:30:52 +0000 (20:30 +1100)
committerAndres Salomon <dilinger@debian.org>
Sun, 2 Nov 2008 03:45:31 +0000 (23:45 -0400)
mkjffs2.sh

index da53633e06ee37c9dd0997f666d4a8c3e97eb44b..a885a24818795160d281800b86058b1e117587f6 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 | 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
 }