From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 29 Apr 2006 22:03:52 +0200 Subject: [U-Boot-Users] u-boot scripts can contain "if" and "loops"? In-Reply-To: Your message of "Sat, 29 Apr 2006 21:57:15 +0200." <200604292157.15286.antonio.dibacco@aruba.it> Message-ID: <20060429200352.1FC77353DAC@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de We have phasers, I vote we blast 'em! -- Bailey, "The Corbomite Maneuver", stardate 1514.2