[U-Boot] Recent changes break our update scripts, because of getenv_yesno()
Stefano Babic
sbabic at denx.de
Fri Dec 31 11:58:19 CET 2010
On 12/31/2010 11:41 AM, Reinhard Meyer wrote:
> /* Loading ok, check if we should attempt an auto-start */
> - if (((s = getenv("autostart")) != NULL) && (strcmp(s,"yes") == 0)) {
> + if (getenv_yesno("autostart")) {
> char *local_args[2];
> local_args[0] = argv[0];
> local_args[1] = NULL;
>
> Originally, a missing env var resulted in FALSE, with the helper function it
> results in TRUE!!
Thanks, this explains why it happens ! We should check again for a
missing env var.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
More information about the U-Boot
mailing list