summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormwberry2016-11-12 15:21:42 -0800
committermwberry2016-11-12 18:33:33 -0800
commit8af711f5d845f294c888dfe479dc1cca00031d84 (patch)
treeee933b8f7fea0265209b69fe3bec190bbf6d7a11
parentc4300cb9705938a45eb19dbbcecaefa6caec8333 (diff)
downloadaur-8af711f5d845f294c888dfe479dc1cca00031d84.tar.gz
hush up dd
-rwxr-xr-xnannycam.functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/nannycam.functions b/nannycam.functions
index 9919909bf219..e8e65ea78ac8 100755
--- a/nannycam.functions
+++ b/nannycam.functions
@@ -122,7 +122,7 @@ determine_mbr_boot_device () {
hash_mbr () {
local mbrDevice=$(determine_mbr_boot_device)
- dd if="$mbrDevice" of=/tmp/mbr.bin bs=512 count=1
+ dd if="$mbrDevice" of=/tmp/mbr.bin bs=512 count=1 &>/dev/null
ACTUAL_MBR_HASH="$(openssl dgst -$HASH_ALG /tmp/mbr.bin | cut -f 2 -d ' ')"
rm /tmp/mbr.bin
}
@@ -139,7 +139,7 @@ hash_mbr_gap () {
local blocks=$(( part_start / 512 ))
local check=$(( $blocks * 512 ))
[ $part_start -eq $check ] || ( echo "Partition doesn't start at 512 byte boundary! Aborting." >&2; exit 3 )
- dd if="$mbrDevice" of=/tmp/gap.bin bs=512 skip=1 count=$blocks
+ dd if="$mbrDevice" of=/tmp/gap.bin bs=512 skip=1 count=$blocks &> /dev/null
ACTUAL_MBR_GAP_HASH="$(openssl dgst -$HASH_ALG /tmp/gap.bin | cut -f 2 -d ' ')"
rm /tmp/gap.bin
}