mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 01:21:36 +08:00
Add support for a login script (in addition to the init script); Add logic so that a USB console session can connect and reconnect to the USB serial device
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5582 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -292,6 +292,19 @@ config NSH_ROMFSETC
|
||||
endif
|
||||
|
||||
if NSH_ROMFSETC
|
||||
|
||||
config NSH_ROMFSRC
|
||||
bool "Support ROMFS login script"
|
||||
default n
|
||||
---help---
|
||||
The ROMFS start-up script will be executed excactly once. For
|
||||
simple, persistence consoles (like a serial console). But with
|
||||
other other kinds of consoles, there may be multiple, transient
|
||||
sessions (such as Telnet and USB consoles). In these cases, you
|
||||
may need another script that is executed at the beginning of each
|
||||
session. Selecting this option enables support for such a login
|
||||
script
|
||||
|
||||
config NSH_ROMFSMOUNTPT
|
||||
string "ROMFS mount point"
|
||||
default "/etc"
|
||||
@@ -308,6 +321,15 @@ config NSH_INITSCRIPT
|
||||
The default is init.d/rcS. This is a relative path and must not
|
||||
start with '/'.
|
||||
|
||||
config NSH_RCSCRIPT
|
||||
string "Relative path to login script"
|
||||
default ".nshrc"
|
||||
depends on NSH_ROMFSRC
|
||||
---help---
|
||||
This is the relative path to the login script within the mountpoint.
|
||||
The default is .nshrc. This is a relative path and must not
|
||||
start with '/'.
|
||||
|
||||
config NSH_ROMFSDEVNO
|
||||
int "ROMFS block device minor number"
|
||||
default 0
|
||||
|
||||
Reference in New Issue
Block a user