mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
NSH now supports a shutdown command if CONFIG_BOARDCTL_POWEROFF-y
This commit is contained in:
@@ -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>" },
|
||||
|
Reference in New Issue
Block a user