From c5dd4c4d0a6a6c6f59a4ab03869a34d568450935 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Fri, 4 Feb 2011 13:50:49 +0100 Subject: defaultenv/bin/update: fix return values This patch fixes the return values of the update script. - Exit with an error of the "_update" script fails. - Add a "else; true" to the crc check, otherwise the script exits with "1". Signed-off-by: Marc Kleine-Budde Cc: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- defaultenv/bin/update | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'defaultenv') diff --git a/defaultenv/bin/update b/defaultenv/bin/update index 43d30977d8..7c37c36904 100644 --- a/defaultenv/bin/update +++ b/defaultenv/bin/update @@ -64,7 +64,9 @@ if [ x${mode} != xtftp ] && [ x${mode} != xxmodem ] ; then exit 1 fi -. /env/bin/_update +. /env/bin/_update || exit 1 if [ x${check} = xy ]; then crc32 -f $image -F $part +else + true fi -- cgit v1.2.3