]> Git Repo - J-u-boot.git/blame - cmd/cmd_exit.c
Move all command code into its own directory
[J-u-boot.git] / cmd / cmd_exit.c
CommitLineData
6b8f5ad1
PT
1/*
2 * Copyright 2000-2009
3 * Wolfgang Denk, DENX Software Engineering, [email protected].
4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
6b8f5ad1
PT
6 */
7
8#include <common.h>
9#include <command.h>
10
088f1b19 11static int do_exit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
6b8f5ad1
PT
12{
13 int r;
14
15 r = 0;
16 if (argc > 1)
17 r = simple_strtoul(argv[1], NULL, 10);
18
19 return -r - 2;
20}
21
22U_BOOT_CMD(
23 exit, 2, 1, do_exit,
24 "exit script",
25 ""
26);
This page took 0.245487 seconds and 4 git commands to generate.