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>
This commit is contained in:
parent
db85c9e2b0
commit
3889e42b9e
|
@ -30,7 +30,7 @@ if [ $kernel = net ]; then
|
|||
if [ x$ip = xdhcp ]; then
|
||||
dhcp
|
||||
fi
|
||||
tftp $uimage uImage
|
||||
tftp $uimage uImage || exit 1
|
||||
bootm uImage
|
||||
else
|
||||
bootm /dev/nor0.kernel
|
||||
|
|
|
@ -47,7 +47,7 @@ if [ $kernel = net ]; then
|
|||
if [ x$ip = xdhcp ]; then
|
||||
dhcp
|
||||
fi
|
||||
tftp $uimage uImage
|
||||
tftp $uimage uImage || exit 1
|
||||
bootm uImage
|
||||
else
|
||||
bootm $act_kernel
|
||||
|
|
|
@ -30,7 +30,7 @@ if [ $kernel = net ]; then
|
|||
if [ x$ip = xdhcp ]; then
|
||||
dhcp
|
||||
fi
|
||||
tftp $uimage uImage
|
||||
tftp $uimage uImage || exit 1
|
||||
bootm uImage
|
||||
else
|
||||
bootm /dev/nor0.kernel
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -30,7 +30,7 @@ if [ $kernel = net ]; then
|
|||
if [ x$ip = xdhcp ]; then
|
||||
dhcp
|
||||
fi
|
||||
tftp $uimage uImage
|
||||
tftp $uimage uImage || exit 1
|
||||
bootm uImage
|
||||
else
|
||||
bootm /dev/nor0.kernel
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue