From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q88mr-00079e-Tv for barebox@lists.infradead.org; Fri, 08 Apr 2011 10:19:35 +0000 From: Marc Kleine-Budde Date: Fri, 8 Apr 2011 12:19:03 +0200 Message-Id: <1302257948-18174-3-git-send-email-mkl@pengutronix.de> In-Reply-To: <1302257948-18174-1-git-send-email-mkl@pengutronix.de> References: <1302257948-18174-1-git-send-email-mkl@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/7] defaultenv: boot: add backwards compatibility for kernel_loc=net To: sha@pengutronix.de Cc: barebox@lists.infradead.org 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 --- defaultenv/bin/boot | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot index c97a396..6649c57 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 -- 1.7.4.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox