net/bringup: late net init after nsh script done
This commit is contained in:
parent
ee615f0568
commit
86bfe13399
@ -50,6 +50,8 @@
|
||||
#include "nsh.h"
|
||||
#include "nsh_console.h"
|
||||
|
||||
#include "netutils/netinit.h"
|
||||
|
||||
#if defined(CONFIG_NSH_ALTCONDEV) && !defined(HAVE_USB_CONSOLE)
|
||||
|
||||
/****************************************************************************
|
||||
@ -284,6 +286,12 @@ int nsh_consolemain(int argc, char *argv[])
|
||||
nsh_initscript(&pstate->cn_vtbl);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NSH_NETINIT
|
||||
/* Bring up the network */
|
||||
|
||||
netinit_bringup();
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NSH_ARCHINIT) && defined(CONFIG_BOARDCTL_FINALINIT)
|
||||
/* Perform architecture-specific final-initialization (if configured) */
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -42,7 +42,6 @@
|
||||
#include <sys/boardctl.h>
|
||||
|
||||
#include "system/readline.h"
|
||||
#include "netutils/netinit.h"
|
||||
#include "nshlib/nshlib.h"
|
||||
|
||||
#include "nsh.h"
|
||||
@ -103,10 +102,4 @@ void nsh_initialize(void)
|
||||
|
||||
boardctl(BOARDIOC_INIT, 0);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NSH_NETINIT
|
||||
/* Bring up the network */
|
||||
|
||||
netinit_bringup();
|
||||
#endif
|
||||
}
|
||||
|
@ -59,6 +59,8 @@
|
||||
#include "nsh.h"
|
||||
#include "nsh_console.h"
|
||||
|
||||
#include "netutils/netinit.h"
|
||||
|
||||
#ifdef HAVE_USB_CONSOLE
|
||||
|
||||
/****************************************************************************
|
||||
@ -317,6 +319,12 @@ int nsh_consolemain(int argc, char *argv[])
|
||||
nsh_initscript(&pstate->cn_vtbl);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NSH_NETINIT
|
||||
/* Bring up the network */
|
||||
|
||||
netinit_bringup();
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NSH_ARCHINIT) && defined(CONFIG_BOARDCTL_FINALINIT)
|
||||
/* Perform architecture-specific final-initialization (if configured) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user