mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
The NSH shutdown option should be called --reboot, not --reset, for compatibility with the statndard shutdown command
This commit is contained in:
@@ -371,11 +371,11 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLE_SHUTDOWN
|
||||
#if defined(CONFIG_BOARDCTL_POWEROFF) && defined(CONFIG_BOARDCTL_RESET)
|
||||
{ "shutdown", cmd_shutdown, 1, 2, "[--reset]" },
|
||||
{ "shutdown", cmd_shutdown, 1, 2, "[--reboot]" },
|
||||
#elif defined(CONFIG_BOARDCTL_POWEROFF)
|
||||
{ "shutdown", cmd_shutdown, 1, 1, NULL },
|
||||
#elif defined(CONFIG_BOARDCTL_RESET)
|
||||
{ "shutdown", cmd_shutdown, 2, 2, "--reset" },
|
||||
{ "shutdown", cmd_shutdown, 2, 2, "--reboot" },
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user