summaryrefslogtreecommitdiff
path: root/telnetd/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'telnetd/init.c')
-rw-r--r--telnetd/init.c10
1 files changed, 8 insertions, 2 deletions
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");