[PATCH v2] defaultenv/bin/update: fix return values
Marc Kleine-Budde
mkl at pengutronix.de
Fri Feb 4 09:12:35 EST 2011
On 02/04/2011 01:50 PM, Marc Kleine-Budde wrote:
> 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 <mkl at pengutronix.de>
> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
>
> Changes since v1:
> - fix exists type in commit message
typo
that is
Marc
>
> defaultenv/bin/update | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/defaultenv/bin/update b/defaultenv/bin/update
> index 43d3097..7c37c36 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
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20110204/94c1e02a/attachment.sig>
More information about the barebox
mailing list