net/bringup: late net init after nsh script done

This commit is contained in:
chao.an
2020-02-19 20:34:52 +08:00
committed by Ouss4
parent ee615f0568
commit 86bfe13399
4 changed files with 24 additions and 7 deletions

View File

@@ -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) */