diff options
Diffstat (limited to 'nuttx/examples/nsh/nsh_telnetd.c')
-rw-r--r-- | nuttx/examples/nsh/nsh_telnetd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/examples/nsh/nsh_telnetd.c b/nuttx/examples/nsh/nsh_telnetd.c index dd679cf39..5e0fa7d4d 100644 --- a/nuttx/examples/nsh/nsh_telnetd.c +++ b/nuttx/examples/nsh/nsh_telnetd.c @@ -478,6 +478,12 @@ static void *nsh_connection(void *arg) nsh_output(&pstate->tn_vtbl, g_nshgreeting); + /* Execute the startup script */ + +#if defined(CONFIG_EXAMPLES_NSH_ROMFSETC) && !defined(CONFIG_EXAMPLES_NSH_CONSOLE) + (void)nsh_script(&pstate->tn_vtbl, "init", NSH_INITPATH); +#endif + /* Loop processing each TELNET command */ do |