From 4e42e29fd6aec3aa6b85c41fb944e2908a457074 Mon Sep 17 00:00:00 2001 From: Michael van Slingerland Date: Wed, 13 Jan 2016 19:31:17 +0100 Subject: cmd_boot: Add a poweroff command Add a 'poweroff' command to boot commands, this only gets enabled if the board Kconfig does a "select CMD_POWEROFF". Signed-off-by: Michael van Slingerland [hdegoede@redhat.com: Make the cmd conditional on a CMD_POWEROFF Kconfig] Signed-off-by: Hans de Goede --- include/command.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/command.h') diff --git a/include/command.h b/include/command.h index 2ae9b6c..0524c0b 100644 --- a/include/command.h +++ b/include/command.h @@ -110,6 +110,7 @@ extern int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc, char *const argv[]); extern int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); +extern int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); /* * Error codes that commands return to cmd_process(). We use the standard 0 -- cgit v1.1