RE: scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Marc Kleine-Budde [mailto:mkl@xxxxxxxxxxxxxx]
> Sent: maandag 28 februari 2011 17:12
> To: Vanalme Filip
> Cc: barebox@xxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux