mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 11:23:07 +08:00
net/bringup: late net init after nsh script done
This commit is contained in:
@@ -47,6 +47,8 @@
|
||||
#include "nsh.h"
|
||||
#include "nsh_console.h"
|
||||
|
||||
#include "netutils/netinit.h"
|
||||
|
||||
#if !defined(CONFIG_NSH_ALTCONDEV) && !defined(HAVE_USB_CONSOLE) && \
|
||||
!defined(HAVE_USB_KEYBOARD)
|
||||
|
||||
@@ -96,6 +98,12 @@ int nsh_consolemain(int argc, char *argv[])
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NSH_NETINIT
|
||||
/* Bring up the network */
|
||||
|
||||
netinit_bringup();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NSH_USBDEV_TRACE
|
||||
/* Initialize any USB tracing options that were requested */
|
||||
|
||||
|
Reference in New Issue
Block a user