mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
The NSH shutdown command now supports the --reset option, if available in hardware
This commit is contained in:
@@ -369,8 +369,14 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BOARDCTL_POWEROFF) && !defined(CONFIG_NSH_DISABLE_SHUTDOWN)
|
||||
#ifndef CONFIG_NSH_DISABLE_SHUTDOWN
|
||||
#if defined(CONFIG_BOARDCTL_POWEROFF) && defined(CONFIG_BOARDCTL_RESET)
|
||||
{ "shutdown", cmd_shutdown, 1, 2, "[--reset]" },
|
||||
#elif defined(CONFIG_BOARDCTL_POWEROFF)
|
||||
{ "shutdown", cmd_shutdown, 1, 1, NULL },
|
||||
#elif defined(CONFIG_BOARDCTL_RESET)
|
||||
{ "shutdown", cmd_shutdown, 2, 2, "--reset" },
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
|
Reference in New Issue
Block a user