[U-Boot-Users] Conditional 'hush' script examples anyone?

Wolfgang Denk wd at denx.de
Thu Sep 11 11:11:03 CEST 2003

Dear Robin,

in message <3F601160.5050803 at tait.co.nz> you wrote:
> I've RTFM'd and I've FAQ'd but I still can't find a single example of 
> the use of conditionals with the u-boot hush shell command line.

man sh :-)

> I assume its only usable with an autoscript or can environmental 

What makes you think so?

> variables hold complete conditional blocks. Most interested in this so 
> that I can make sensible decisions about what to do if an image CRC is 
> bad for example (or when to boot a different image after an upgrade).

You  can  use  conditionals  everywhere:  in  interactive  input,  in
environment variables, in scripts ....

> Examples, examples, examples is what I'm looking for rather than a dry 
> explanation about hush (which I can get close to from any book that 
> documents bash!!)

See http://www.denx.de/twiki/bin/view/DULG/CommandLineParsing#Section_12.1.7.3.

Best regards,

Wolfgang Denk

Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Was heißt Windows auf Indianisch? - "Weißer  Mann,  der  auf  Sanduhr

More information about the U-Boot mailing list