]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/a3m071/a3m071.c
a3m071: Make spl_start_uboot test like getenv_yesno does
[karo-tx-uboot.git] / board / a3m071 / a3m071.c
index 7aeefb29a901e922ce219b7976e709fbbe5aa975..b96ba811fa2823f7ac6e021597cb3ccf06995c94 100644 (file)
@@ -412,7 +412,8 @@ int spl_start_uboot(void)
 
        env_init();
        getenv_f("boot_os", s, sizeof(s));
-       if ((s != NULL) && (strcmp(s, "yes") == 0))
+       if ((s != NULL) && (*s == '1' || *s == 'y' || *s == 'Y' ||
+                           *s == 't' || *s == 'T'))
                return 0;
 
        return 1;