From: Antonio Di Bacco Date: Sat, 29 Apr 2006 22:09:03 +0200 Subject: [U-Boot-Users] u-boot scripts can contain "if" and "loops"? In-Reply-To: <20060429200352.1FC77353DAC@atlas.denx.de> References: <20060429200352.1FC77353DAC@atlas.denx.de> Message-ID: <200604292209.03545.antonio.dibacco@aruba.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Thank you, this u-boot is wonderful! On Saturday 29 April 2006 22:03, Wolfgang Denk wrote: > In message <200604292157.15286.antonio.dibacco@aruba.it> you wrote: > > Anyone knows how to write an environment variable with a script inside > > containing if or loops? > > setenv foo 'if imi 40040000 ; then bootm 40040000 ; else dhcp ; bootm ; fi' > > Of course this requires that you have the hush shell enabled in your > board configuration; see also > http://www.denx.de/wiki/view/DULG/CommandLineParsing > > Best regards, > > Wolfgang Denk