2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2009-10-16 22:36:25 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2000-2009
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <command.h>
|
|
|
|
|
2020-05-10 17:40:03 +00:00
|
|
|
static int do_exit(struct cmd_tbl *cmdtp, int flag, int argc,
|
|
|
|
char *const argv[])
|
2009-10-16 22:36:25 +00:00
|
|
|
{
|
|
|
|
if (argc > 1)
|
2021-07-24 15:03:30 +00:00
|
|
|
return dectoul(argv[1], NULL);
|
2009-10-16 22:36:25 +00:00
|
|
|
|
2021-04-06 12:00:24 +00:00
|
|
|
return 0;
|
2009-10-16 22:36:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
U_BOOT_CMD(
|
|
|
|
exit, 2, 1, do_exit,
|
|
|
|
"exit script",
|
|
|
|
""
|
|
|
|
);
|