From 0fc8481f15e5bc44901f2659e1b7402025094627 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Thu, 28 Feb 2008 23:12:47 +0000 Subject: [PATCH] As adding some commands to the telnet server shell doesn't seem to be desirable in the application it's now done in the example. --- examples/telnet-server/telnet-server.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/telnet-server/telnet-server.c b/examples/telnet-server/telnet-server.c index 768fc3eef..9d7ab7534 100644 --- a/examples/telnet-server/telnet-server.c +++ b/examples/telnet-server/telnet-server.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: telnet-server.c,v 1.1 2006/06/17 22:41:24 adamdunkels Exp $ + * $Id: telnet-server.c,v 1.2 2008/02/28 23:12:47 oliverschmidt Exp $ */ /** @@ -40,7 +40,23 @@ #include "contiki-net.h" #include "telnetd.h" +#include "shell.h" /*---------------------------------------------------------------------------*/ -AUTOSTART_PROCESSES(&telnetd_process); +PROCESS(shell_init_process, "Shell init process"); +/*---------------------------------------------------------------------------*/ +PROCESS_THREAD(shell_init_process, ev, data) +{ + PROCESS_BEGIN(); + + shell_file_init(); + shell_ps_init(); + shell_run_init(); + shell_text_init(); + shell_time_init(); + + PROCESS_END(); +} +/*---------------------------------------------------------------------------*/ +AUTOSTART_PROCESSES(&telnetd_process, &shell_init_process); /*---------------------------------------------------------------------------*/