From: Piotr Dymacz Date: Sun, 6 Aug 2017 20:59:56 +0000 (+0200) Subject: Add simple 'true' command, useful for while loops X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2d57cf8ab5fe059338db9c3aea687c12ea5df26;p=oweals%2Fu-boot_mod.git Add simple 'true' command, useful for while loops --- diff --git a/u-boot/common/hush.c b/u-boot/common/hush.c index 0b0e7d0..5fcc49f 100644 --- a/u-boot/common/hush.c +++ b/u-boot/common/hush.c @@ -1564,5 +1564,12 @@ static char * make_string(char ** inp) { return str; } +int do_true(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) +{ + return 0; +} + +U_BOOT_CMD(true, 1, 1, do_true, "return true\n", NULL); + #endif /* CFG_HUSH_PARSER */ /****************************************************************************/