NSH: Add readlink command.

This commit is contained in:
Gregory Nutt
2017-02-05 10:35:11 -06:00
parent bb81a3d11d
commit 7a0e08c37b
5 changed files with 65 additions and 8 deletions

View File

@@ -410,6 +410,12 @@ static const struct cmdmap_s g_cmdmap[] =
# endif
#endif
#if CONFIG_NFILE_DESCRIPTORS > 0
# if !defined(CONFIG_NSH_DISABLE_READLINK) && defined(CONFIG_PSEUDOFS_SOFTLINKS)
{ "readlink", cmd_readlink, 2, 2, "<link>" },
# endif
#endif
#if defined(CONFIG_BOARDCTL_RESET) && !defined(CONFIG_NSH_DISABLE_REBOOT)
{ "reboot", cmd_reboot, 1, 1, NULL },
#endif