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 1Q899X-0007NQ-Tc for barebox@lists.infradead.org; Fri, 08 Apr 2011 10:43:13 +0000 Date: Fri, 8 Apr 2011 12:42:58 +0200 From: Sascha Hauer Message-ID: <20110408104258.GV7285@pengutronix.de> References: <1302257948-18174-1-git-send-email-mkl@pengutronix.de> <1302257948-18174-2-git-send-email-mkl@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1302257948-18174-2-git-send-email-mkl@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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: Re: [PATCH 1/7] defaultenv: simplify scripting To: Marc Kleine-Budde Cc: barebox@lists.infradead.org On Fri, Apr 08, 2011 at 12:19:02PM +0200, Marc Kleine-Budde wrote: > Signed-off-by: Marc Kleine-Budde > --- > defaultenv/bin/boot | 2 +- > defaultenv/bin/update | 8 ++++---- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot > index de4fa24..c97a396 100644 > --- a/defaultenv/bin/boot > +++ b/defaultenv/bin/boot > @@ -74,7 +74,7 @@ if [ ! -e /dev/ram0.kernel ]; then > addpart /dev/ram0 8M@8M(kernel) > fi > > -if [ x$kernel_loc = xnfs ] || [ x$kernel_loc = xtftp ]; then > +if [ x$kernel_loc = xnfs -o x$kernel_loc = xtftp ]; then > if [ x$ip = xdhcp ]; then > dhcp > fi > diff --git a/defaultenv/bin/update b/defaultenv/bin/update > index 7c37c36..c78159d 100644 > --- a/defaultenv/bin/update > +++ b/defaultenv/bin/update > @@ -32,12 +32,12 @@ elif [ x${type} = xrootfs ]; then > type=root > elif [ x${type} = xbarebox ]; then > image=$bareboximage > - if [ x${image} = x ]; then > + if [ -z x${image} ]; then s/x${image}/${image}/ Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox