summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2011-09-25 22:54:05 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-09-26 13:22:25 +0200
commit3d7b2edb0c9655cfbc3ea4c2a94011b1942de185 (patch)
tree5369ab92f8ac58e518a20dda9dc292ff73709ea9 /defaultenv
parent4ac5def38adb65e392f0b7b3965c6763e8ae3fa4 (diff)
downloadbarebox-3d7b2edb0c9655cfbc3ea4c2a94011b1942de185.tar.gz
barebox-3d7b2edb0c9655cfbc3ea4c2a94011b1942de185.tar.xz
defaultenv: boot: add backwards compatibility for kernel_loc=net
Since commit 9eac282024c55fc13970189d6ace61f884917538, the boot script doesn't understand kernel_loc=net anymore. This patch adds backwards compatibility so that the kernel is loaded from tftp as before. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/bin/boot4
1 files changed, 4 insertions, 0 deletions
diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot
index c97a3969c..6649c57a1 100644
--- a/defaultenv/bin/boot
+++ b/defaultenv/bin/boot
@@ -2,6 +2,10 @@
. /env/config
+if [ x$kernel_loc = xnet ]; then
+ kernel_loc=tftp
+fi
+
if [ x$1 = xnand ]; then
rootfs_loc=nand
kernel_loc=nand