From 8a4fcf2051242ec36fc0b3f4b3a1088818a6dd98 Mon Sep 17 00:00:00 2001 From: Thomas Doerfler Date: Fri, 15 May 2009 07:23:01 +0000 Subject: move old changelog entries to proper location. init.c: Provide custom shell environment. --- ChangeLog | 8 -------- telnetd/ChangeLog | 12 ++++++++++++ telnetd/init.c | 10 ++++++++-- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4b27141..e866d9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 - - * telnetd/init.c: Enable shell login checks. - -2009-04-14 Sebastian Huber - - * telnetd/init.c: Updated telnet demon initialization. - 2009-02-10 Joel Sherrill * 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 + + * init.c: Provide custom shell environment. + 2009-05-13 Joel Sherrill * Makefile: Allow overrides from invoking environment. @@ -6,6 +10,14 @@ * Makefile, init.c: Now build with libbsdport. +2009-05-05 Sebastian Huber + + * init.c: Enable shell login checks. + +2009-04-14 Sebastian Huber + + * init.c: Updated telnet demon initialization. + 2008-10-15 Joel Sherrill 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 -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"); -- cgit v1.2.3