summaryrefslogtreecommitdiffstats
path: root/board/pm9263/env/bin/boot
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-11-14 11:37:28 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2008-11-14 11:37:28 +0100
commit3889e42b9e6845b04c513b04f753efae233452ed (patch)
tree2dcd85a2cced3edd9105e7491e966bf300025a78 /board/pm9263/env/bin/boot
parentdb85c9e2b0f57d286c1319052ce19e54b316473e (diff)
downloadbarebox-3889e42b9e6845b04c513b04f753efae233452ed.tar.gz
barebox-3889e42b9e6845b04c513b04f753efae233452ed.tar.xz
Default environments: Do not continue when tftp failed
When we fail to download the kernel image (for example when the user pressed ctrl-c) do not try to boot the image Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'board/pm9263/env/bin/boot')
-rw-r--r--board/pm9263/env/bin/boot2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/pm9263/env/bin/boot b/board/pm9263/env/bin/boot
index 05241d93c0..533dea7618 100644
--- a/board/pm9263/env/bin/boot
+++ b/board/pm9263/env/bin/boot
@@ -37,7 +37,7 @@ if [ $kernel = net ]; then
if [ x$ip = xdhcp ]; then
dhcp
fi
- tftp $uimage uImage
+ tftp $uimage uImage || exit 1
bootm uImage
elif [ $kernel = nor ]; then
bootm /dev/nor0.kernel