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

@@ -988,6 +988,10 @@ void nsh_usbtrace(void);
# endif
#endif /* CONFIG_NET */
#if defined(CONFIG_BOARDCTL_POWEROFF) && !defined(CONFIG_NSH_DISABLE_SHUTDOWN)
int cmd_shutdown(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
#endif
#ifndef CONFIG_DISABLE_ENVIRON
# ifndef CONFIG_NSH_DISABLE_SET
int cmd_set(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);