diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-05-15 07:23:01 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-05-15 07:23:01 +0000 |
commit | 8a4fcf2051242ec36fc0b3f4b3a1088818a6dd98 (patch) | |
tree | a4fe0367a547d0bcbccaa8811a7d646a06179617 /telnetd | |
parent | 2009-05-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | network-demos-8a4fcf2051242ec36fc0b3f4b3a1088818a6dd98.tar.bz2 |
move old changelog entries to proper location.
init.c: Provide custom shell environment.
Diffstat (limited to 'telnetd')
-rw-r--r-- | telnetd/ChangeLog | 12 | ||||
-rw-r--r-- | telnetd/init.c | 10 |
2 files changed, 20 insertions, 2 deletions
diff --git a/telnetd/ChangeLog b/telnetd/ChangeLog index 08ac58d..3218f15 100644 --- a/telnetd/ChangeLog +++ b/telnetd/ChangeLog @@ -1,3 +1,7 @@ +2009-05-14 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * init.c: Provide custom shell environment. + 2009-05-13 Joel Sherrill <joel.sherrill@oarcorp.com> * Makefile: Allow overrides from invoking environment. @@ -6,6 +10,14 @@ * Makefile, init.c: Now build with libbsdport. +2009-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * init.c: Enable shell login checks. + +2009-04-14 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * init.c: Updated telnet demon initialization. + 2008-10-15 Joel Sherrill <joel.sherrill@oarcorp.com> PR 1331/networking diff --git a/telnetd/init.c b/telnetd/init.c index dbd7b38..0b14a4b 100644 --- a/telnetd/init.c +++ b/telnetd/init.c @@ -113,15 +113,21 @@ void echoShell( #include <rtems/shellconfig.h> -void rtemsShell( +static void rtemsShell( char *pty_name, void *cmd_arg ) { + rtems_shell_env_t env = rtems_global_shell_env; + + env.devname = pty_name; + env.taskname = "TLNT"; + env.login_check = rtems_shell_login_check; + if ( !remain_on_console ) printk("============== Starting Shell ==============\n"); - rtems_shell_main_loop( NULL ); + rtems_shell_main_loop( &env ); if ( !remain_on_console ) printk("============== Exiting Shell ==============\n"); |