summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/contrib/ddimage6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/contrib/ddimage b/scripts/contrib/ddimage
index a503f11d0d..ab929957a5 100755
--- a/scripts/contrib/ddimage
+++ b/scripts/contrib/ddimage
@@ -100,5 +100,9 @@ if [ "$RESPONSE" != "y" ]; then
100fi 100fi
101 101
102echo "Writing image..." 102echo "Writing image..."
103dd if="$IMAGE" of="$DEVICE" bs="$BLOCKSIZE" 103if which pv >/dev/null 2>&1; then
104 pv "$IMAGE" | dd of="$DEVICE" bs="$BLOCKSIZE"
105else
106 dd if="$IMAGE" of="$DEVICE" bs="$BLOCKSIZE"
107fi
104sync 108sync