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 > Cc: Jean-Christophe PLAGNIOL-VILLARD > --- > > 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 |