From b4ec000dece295abc33a087048d3304cec3e322e Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Tue, 2 Apr 2024 15:38:26 -0300 Subject: [PATCH] apps/nsh_commands: Use quit to poweroff Currently new users when try to run NuttX using the SIM get stuck into simulator, because they have no idea that poweroff command is used to leave it. Let use KISS approach and use quit as an alias to poweroff command. Signed-off-by: Alan C. Assis --- nshlib/nsh_command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nshlib/nsh_command.c b/nshlib/nsh_command.c index 6f23f7339..a505b1faa 100644 --- a/nshlib/nsh_command.c +++ b/nshlib/nsh_command.c @@ -456,6 +456,7 @@ static const struct cmdmap_s g_cmdmap[] = #if defined(CONFIG_BOARDCTL_POWEROFF) && !defined(CONFIG_NSH_DISABLE_POWEROFF) CMD_MAP("poweroff", cmd_poweroff, 1, 2, NULL), + CMD_MAP("quit", cmd_poweroff, 1, 2, NULL), #endif #ifndef CONFIG_NSH_DISABLE_PRINTF