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 <acassis@gmail.com>
This commit is contained in:
parent
9d67f38062
commit
b4ec000dec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user