From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] u-boot scripts can contain "if" and "loops"?
Date: Sat, 29 Apr 2006 22:03:52 +0200 [thread overview]
Message-ID: <20060429200352.1FC77353DAC@atlas.denx.de> (raw)
In-Reply-To: Your message of "Sat, 29 Apr 2006 21:57:15 +0200." <200604292157.15286.antonio.dibacco@aruba.it>
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
next prev parent reply other threads:[~2006-04-29 20:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-29 19:57 [U-Boot-Users] u-boot scripts can contain "if" and "loops"? Antonio Di Bacco
2006-04-29 20:03 ` Wolfgang Denk [this message]
2006-04-29 20:09 ` Antonio Di Bacco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060429200352.1FC77353DAC@atlas.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.