The NSH shutdown option should be called --reboot, not --reset, for compatibility with the statndard shutdown command

This commit is contained in:
Gregory Nutt
2015-07-04 11:39:44 -06:00
parent a2a1530694
commit 165637ce27
3 changed files with 12 additions and 11 deletions

View File

@@ -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