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 | |
parent | 0cd4d86bdbe3293dfdefbe98a8c01e7472bdb641 (diff) |
move old changelog entries to proper location.
init.c: Provide custom shell environment.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | telnetd/ChangeLog | 12 | ||||
-rw-r--r-- | telnetd/init.c | 10 |
3 files changed, 20 insertions, 10 deletions
@@ -4,14 +4,6 @@ newer version in libbsdport, and on the real NIC in the Winsystems PC in RTEMS Lab. -2009-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de> - - * telnetd/init.c: Enable shell login checks. - -2009-04-14 Sebastian Huber <sebastian.huber@embedded-brains.de> - - * telnetd/init.c: Updated telnet demon initialization. - 2009-02-10 Joel Sherrill <joel.sherrill@oarcorp.com> * networkconfig-qemu.h: Add option for qemu to use PCI i82551 NIC. 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"); |