mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
This commit removes the private network initialization logic from NSH and puts in a common location at apps/netutils/netinit. Now that netork initialization logic can be used by applications that do not include NSH.
Squashed commit of the following: apps/nshlib: Remove NSH initialization. Now uses the common apps/netutils/netinit logic (which was cloned from nshlib to begin with). apps/netutils/netinit: Clone network initialization logic from NSH to this directory so that it can be available for general use.
This commit is contained in:
@@ -215,10 +215,10 @@ static int nsh_task(void)
|
||||
|
||||
nsh_initialize();
|
||||
|
||||
#if defined(CONFIG_NSH_TELNET) && !defined(CONFIG_NSH_NETLOCAL)
|
||||
#if defined(CONFIG_NSH_TELNET) && !defined(CONFIG_NETINIT_NETLOCAL)
|
||||
/* If the Telnet console is selected as a front-end, then start the
|
||||
* Telnet daemon UNLESS network initialization is deferred via
|
||||
* CONFIG_NSH_NETLOCAL. In that case, the telnet daemon must be
|
||||
* CONFIG_NETINIT_NETLOCAL. In that case, the telnet daemon must be
|
||||
* started manually with the telnetd command after the network has
|
||||
* been initialized
|
||||
*/
|
||||
|
Reference in New Issue
Block a user