diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-11 21:54:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-11 21:54:23 +0000 |
commit | 97d11b18c99ba683fbe91fc3ad5d9b897de27c81 (patch) | |
tree | 221d07773f3a6dfb6f566eacf2c97e15e77e935f /nuttx/examples/nsh/nsh_main.c | |
parent | c89a814396a9e542f05bc8b204b0b6c00dc1bf83 (diff) | |
download | nuttx-97d11b18c99ba683fbe91fc3ad5d9b897de27c81.tar.gz nuttx-97d11b18c99ba683fbe91fc3ad5d9b897de27c81.tar.bz2 nuttx-97d11b18c99ba683fbe91fc3ad5d9b897de27c81.zip |
Add /etc via ROMFS and /tmp via FAT FS to NSH
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@910 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh_main.c')
-rw-r--r-- | nuttx/examples/nsh/nsh_main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/examples/nsh/nsh_main.c b/nuttx/examples/nsh/nsh_main.c index c893d2902..20204d902 100644 --- a/nuttx/examples/nsh/nsh_main.c +++ b/nuttx/examples/nsh/nsh_main.c @@ -218,7 +218,7 @@ static const struct cmdmap_s g_cmdmap[] = * Public Data ****************************************************************************/ -const char g_nshgreeting[] = "NuttShell (NSH)\n"; +const char g_nshgreeting[] = "\nNuttShell (NSH)\n"; const char g_nshprompt[] = "nsh> "; const char g_nshsyntax[] = "nsh: %s: syntax error\n"; const char g_fmtargrequired[] = "nsh: %s: missing required argument(s)\n"; @@ -853,6 +853,12 @@ int user_start(int argc, char *argv[]) int ret; #endif + /* Mount the /etc filesystem */ + +#ifdef CONFIG_EXAMPLES_NSH_ROMFSETC + (void)nsh_romfsetc(); +#endif + /* Set the priority of this task to something in the middle so that 'nice' * can both raise and lower the priority. */ |