mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 11:23:07 +08:00
nshlib: Call nsh_sysinitscript in usb or alt console like normal one
forget in the pull request: https://github.com/apache/incubator-nuttx-apps/pull/1142 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
hartmannathan

parent
893387b2c5
commit
cf70d8f95b
@@ -284,10 +284,10 @@ int nsh_consolemain(int argc, FAR char *argv[])
|
||||
nsh_nullstdio();
|
||||
#endif
|
||||
|
||||
/* Execute the one-time start-up script (output may go to /dev/null) */
|
||||
#if defined(CONFIG_NSH_ROMFSETC) && !defined(CONFIG_NSH_DISABLESCRIPT)
|
||||
/* Execute the system init script */
|
||||
|
||||
#ifdef CONFIG_NSH_ROMFSETC
|
||||
nsh_initscript(&pstate->cn_vtbl);
|
||||
nsh_sysinitscript(&pstate->cn_vtbl);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NSH_NETINIT
|
||||
@@ -302,6 +302,12 @@ int nsh_consolemain(int argc, FAR char *argv[])
|
||||
boardctl(BOARDIOC_FINALINIT, 0);
|
||||
#endif
|
||||
|
||||
/* Execute the one-time start-up script (output may go to /dev/null) */
|
||||
|
||||
#ifdef CONFIG_NSH_ROMFSETC
|
||||
nsh_initscript(&pstate->cn_vtbl);
|
||||
#endif
|
||||
|
||||
/* Now loop, executing creating a session for each USB connection */
|
||||
|
||||
for (; ; )
|
||||
|
Reference in New Issue
Block a user