9
0
Fork 0

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:
Sascha Hauer 2008-11-14 11:37:28 +01:00
parent db85c9e2b0
commit 3889e42b9e
7 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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