From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ip2.televic.com ([81.82.194.222]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PuKXB-0001ez-6R for barebox@lists.infradead.org; Tue, 01 Mar 2011 08:02:17 +0000 From: Vanalme Filip Date: Tue, 1 Mar 2011 09:02:14 +0100 Message-ID: <6EE7D1502C48E44E92DCADF9DD3E0DB9017FF3B00E08@SRV-VS06.TELEVIC.COM> References: <6EE7D1502C48E44E92DCADF9DD3E0DB9017FF3B00DD7@SRV-VS06.TELEVIC.COM> <4D6BC8C7.9090309@pengutronix.de> <4D6BC95B.5030505@pengutronix.de> In-Reply-To: <4D6BC95B.5030505@pengutronix.de> Content-Language: en-US MIME-Version: 1.0 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: scripts To: Marc Kleine-Budde Cc: "barebox@lists.infradead.org" > -----Original Message----- > From: Marc Kleine-Budde [mailto:mkl@pengutronix.de] > Sent: maandag 28 februari 2011 17:12 > To: Vanalme Filip > Cc: barebox@lists.infradead.org > Subject: Re: scripts > > On 02/28/2011 05:09 PM, Marc Kleine-Budde wrote: > > On 02/28/2011 05:03 PM, Vanalme Filip wrote: > >> I'm currently studying some Barebox scripts (i.e. init, boot) and I have noticed > something strange with scripts : > >> > >> barebox:/env/bin echo $bootfile > >> zImage > >> barebox:/env/bin echo $eth0.serverip > >> 10.0.48.80 > >> barebox:/env/bin cat test > >> #!/bin/sh > >> > >> echo --$eth0.serverip-- > >> echo --$bootfile-- > > > > try: > > > > echo --${bootfile}-- > > If that doesn't make a difference, try to "source" the config file in your script, e.g.: > > source /env/config [Filip] That's it. I forgot to source the config file. Thanks! > > cheers, Marc > -- > Pengutronix e.K. | Marc Kleine-Budde | > Industrial Linux Solutions | Phone: +49-231-2826-924 | > Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | > Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox