From 9b70bbe2cce91d3725e084ecfb1293a30f42645b Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 29 May 2013 11:46:48 +0200 Subject: [PATCH] Exit with status 1 if dd fails --- boot/arm/odroid-u2-x2/sd_fuse/sd_fusing.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/boot/arm/odroid-u2-x2/sd_fuse/sd_fusing.sh b/boot/arm/odroid-u2-x2/sd_fuse/sd_fusing.sh index ca03396..39869dd 100755 --- a/boot/arm/odroid-u2-x2/sd_fuse/sd_fusing.sh +++ b/boot/arm/odroid-u2-x2/sd_fuse/sd_fusing.sh @@ -35,19 +35,19 @@ tzsw_position=2111 # echo "BL1 fusing" -dd iflag=dsync oflag=dsync if="${DIR}/bl1.HardKernel" of="${1}" seek="${signed_bl1_position}" +dd iflag=dsync oflag=dsync if="${DIR}/bl1.HardKernel" of="${1}" seek="${signed_bl1_position}" || exit 1 # echo "BL2 fusing" -dd iflag=dsync oflag=dsync if="${DIR}/bl2.HardKernel" of="${1}" seek="${bl2_position}" +dd iflag=dsync oflag=dsync if="${DIR}/bl2.HardKernel" of="${1}" seek="${bl2_position}" || exit 1 # echo "u-boot fusing" -dd iflag=dsync oflag=dsync if="${DIR}/../u-boot.bin" of="${1}" seek="${uboot_position}" +dd iflag=dsync oflag=dsync if="${DIR}/../u-boot.bin" of="${1}" seek="${uboot_position}" || exit 1 # echo "TrustZone S/W fusing" -dd iflag=dsync oflag=dsync if="${DIR}/tzsw.HardKernel" of="${1}" seek="${tzsw_position}" +dd iflag=dsync oflag=dsync if="${DIR}/tzsw.HardKernel" of="${1}" seek="${tzsw_position}" || exit 1 #################################### #