From 2a92b75fe1ab26afa9cc36bec8082fcf9af5200b Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Mon, 13 Jun 2022 21:53:47 +0300 Subject: [PATCH] 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 --- feeds/ipq807x/ipq807x/base-files/lib/upgrade/platform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/ipq807x/ipq807x/base-files/lib/upgrade/platform.sh b/feeds/ipq807x/ipq807x/base-files/lib/upgrade/platform.sh index c000a9b7a..f78c3f941 100755 --- a/feeds/ipq807x/ipq807x/base-files/lib/upgrade/platform.sh +++ b/feeds/ipq807x/ipq807x/base-files/lib/upgrade/platform.sh @@ -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} }