[U-Boot] [PATCH 3/3] Add 'true' and 'false' commands

Wolfgang Denk wd at denx.de
Mon Nov 23 00:07:03 CET 2009


Dear Peter Tyser,

In message <1255732587-24542-3-git-send-email-ptyser at xes-inc.com> you wrote:
> These commands are only enabled when the hush shell is enabled and can
> be useful in scripts such as:
> 
> while true do
>     echo "Booting OS...";
>     run $bootcmd;
>     echo "Booting OS failed";
>     sleep 10;
> done
> 
> Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
> ---
> This could be added as a hush builtin command if people don't want to
> pollute the top-level help listing.  Its debatable if 'false' should
> be added also, but I threw it in to be consistent.
> 
>  common/cmd_test.c |   22 ++++++++++++++++++++++
>  1 files changed, 22 insertions(+), 0 deletions(-)

Applied, to "next" branch, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
FORTRAN? The syntactically incorrect statement "DO 10 I = 1.10"  will
parse  and  generate  code  creating  a  variable, DO10I, as follows:
"DO10I = 1.10" If that doesn't terrify you, it should.


More information about the U-Boot mailing list