From af2649b795f28a76d284b2548719dd3ae5e668ea Mon Sep 17 00:00:00 2001 From: Teresa Gamez Date: Thu, 9 Jun 2011 09:45:31 +0200 Subject: Check return values of erase and tftp/cp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The _update script does not check the return value of erasing a partiton or flashing the image to the device. Added this check to get a evaluable return value from the update script. Signed-off-by: Teresa Gámez Signed-off-by: Sascha Hauer --- defaultenv/bin/_update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'defaultenv') diff --git a/defaultenv/bin/_update b/defaultenv/bin/_update index f736acc744..1bcb71c9b2 100644 --- a/defaultenv/bin/_update +++ b/defaultenv/bin/_update @@ -35,16 +35,16 @@ unprotect $part echo echo "erasing partition $part" echo -erase $part +erase $part || exit 1 echo echo "flashing $image to $part" echo if [ x$mode = xtftp ]; then - tftp $image $part + tftp $image $part || exit 1 else - cp $image $part + cp $image $part || exit 1 fi protect $part -- cgit v1.2.3