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