]> 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)
committerJames Cameron <quozl@laptop.org>
Wed, 29 Oct 2008 09:30:52 +0000 (20:30 +1100)
mkjffs2.sh

index b67dde95d4a784cbe99ca970a5cce243eafc14d2..3153795c6f9f11e9e6c1c84b86952b9dcb03c230 100755 (executable)
@@ -68,7 +68,7 @@ do_sha256()
        f=$1
        eblocks=$((`stat --printf "%s\n" $f` / (128*1024)))
        for b in $(seq 0 $(($eblocks - 1))); do
        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
 }
                echo "eblock: `printf '%x' $b` sha256 $sha" >> ${IMG_NAME}
        done
 }