ipq807x: silence dd errors in do_flash_emmc

Running dd if=/dev/zero to a partition will always throw an ENOSPC error
when reaching the end of the partition. Silence those errors to avoid
confusion.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
Stijn Tintel
2022-06-13 21:53:47 +03:00
committed by John Crispin
parent cb30d9e20a
commit 2a92b75fe1

View File

@@ -44,7 +44,7 @@ do_flash_emmc() {
}
echo erase $4
dd if=/dev/zero of=${emmcblock}
dd if=/dev/zero of=${emmcblock} 2> /dev/null
echo flash $4
tar Oxf $tar_file ${board_dir}/$part | dd of=${emmcblock}
}