From c2d57cf8ab5fe059338db9c3aea687c12ea5df26 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Sun, 6 Aug 2017 22:59:56 +0200 Subject: [PATCH] Add simple 'true' command, useful for while loops --- u-boot/common/hush.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ /****************************************************************************/ -- 2.25.1