summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-04-19 14:37:11 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-06-24 00:50:24 +0200
commiteb043e8c2427e92ddda31a425a0ef3707ef2de07 (patch)
treeea4522704ce49ff154b93fe7433ee15a29f34a88
parent088c6f613c4d0cd6765ea54d788979dbe787aa6a (diff)
update.sh: omit explicit exit code after recovery command
By omitting an explicit exit code after the recovery command we will get the exit code of the last command. This makes sense, since we would be able to tell whether recovery actually succeeded or not. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rwxr-xr-xrecipes/images/files/colibri-imx7/update.sh2
-rwxr-xr-xrecipes/images/files/colibri-vf/update.sh2
-rwxr-xr-xrecipes/images/files/library/imx6/update.sh2
-rwxr-xr-xrecipes/images/files/library/tegra/update.sh2
4 files changed, 4 insertions, 4 deletions
diff --git a/recipes/images/files/colibri-imx7/update.sh b/recipes/images/files/colibri-imx7/update.sh
index 857159f..e6f041c 100755
--- a/recipes/images/files/colibri-imx7/update.sh
+++ b/recipes/images/files/colibri-imx7/update.sh
@@ -117,7 +117,7 @@ if [ "$UBOOT_RECOVERY" -eq 1 ] ; then
echo "Put the module in recovery mode and press [ENTER]..."
read RESULT
sudo ${LOCPATH}/imx_usb ${BINARIES}/u-boot.imx
- exit 0
+ exit
fi
#sanity check for correct untared rootfs
diff --git a/recipes/images/files/colibri-vf/update.sh b/recipes/images/files/colibri-vf/update.sh
index b0611bc..38f89d7 100755
--- a/recipes/images/files/colibri-vf/update.sh
+++ b/recipes/images/files/colibri-vf/update.sh
@@ -134,7 +134,7 @@ if [ "$UBOOT_RECOVERY" -eq 1 ] ; then
echo "Put the module in recovery mode and press [ENTER]..."
read RESULT
sudo ${LOCPATH}/imx_uart ${LOADEROPTS} ${UARTDEV} ${LOCPATH}/vybrid_usb_work.conf ${BINARIES}/u-boot.imx
- exit 0
+ exit
fi
#sanity check for correct untared rootfs
diff --git a/recipes/images/files/library/imx6/update.sh b/recipes/images/files/library/imx6/update.sh
index c3f3903..10043e1 100755
--- a/recipes/images/files/library/imx6/update.sh
+++ b/recipes/images/files/library/imx6/update.sh
@@ -139,7 +139,7 @@ if [ "$UBOOT_RECOVERY" -ge 1 ] ; then
cd ${LOCPATH}
#the IT timings work for all modules, so use it during recovery
sudo ./imx_usb ../${BINARIES}/${U_BOOT_BINARY_IT}
- exit 1
+ exit
fi
#sanity check for awk programs
diff --git a/recipes/images/files/library/tegra/update.sh b/recipes/images/files/library/tegra/update.sh
index 5b080ca..71e25f8 100755
--- a/recipes/images/files/library/tegra/update.sh
+++ b/recipes/images/files/library/tegra/update.sh
@@ -220,7 +220,7 @@ if [ "$UBOOT_RECOVERY" -eq 1 ] ; then
cd ${LOCPATH}
sudo ./tegrarcm --bct=../${BINARIES}/${BCT} --bootloader=../${BINARIES}/${U_BOOT_BINARY} --loadaddr=0x80108000
- exit 1
+ exit
fi
#sanity check for awk programs