[U-Boot-Users] u-boot scripts can contain "if" and "loops"?

Antonio Di Bacco antonio.dibacco at aruba.it
Sat Apr 29 22:09:03 CEST 2006


Thank you, this u-boot is wonderful!

On Saturday 29 April 2006 22:03, Wolfgang Denk wrote:
> In message <200604292157.15286.antonio.dibacco at 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




More information about the U-Boot mailing list