NSH now supports a shutdown command if CONFIG_BOARDCTL_POWEROFF-y

This commit is contained in:
Gregory Nutt
2015-07-04 08:20:19 -06:00
parent 19f40c4f0f
commit a18ed33d99
6 changed files with 27 additions and 5 deletions

View File

@@ -369,6 +369,10 @@ static const struct cmdmap_s g_cmdmap[] =
# endif
#endif
#if defined(CONFIG_BOARDCTL_POWEROFF) && !defined(CONFIG_NSH_DISABLE_SHUTDOWN)
{ "shutdown", cmd_shutdown, 1, 1, NULL },
#endif
#ifndef CONFIG_DISABLE_SIGNALS
# ifndef CONFIG_NSH_DISABLE_SLEEP
{ "sleep", cmd_sleep, 2, 2, "<sec>" },