[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH 3/3] shell: Alten Wartecode fuer console entfernen



- shell: Alten Wartecode fuer console entfernen, das geht mittlerweile
         auch ohne.

Signed-off-by: Antoine Kaufmann <toni@xxxxxxxxxx>
---
 src/modules/c/shell/shell.c |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)

diff --git a/src/modules/c/shell/shell.c b/src/modules/c/shell/shell.c
index 4436bc0..cb5de50 100644
--- a/src/modules/c/shell/shell.c
+++ b/src/modules/c/shell/shell.c
@@ -106,31 +106,6 @@ shell_command_t shell_commands[] = {
 
 int main(int argc, char* argv[])
 {
-    qword timeout = get_tick_count() + 20000000;
-    while((init_service_get("cmos") == 0) 
-            || (init_service_get("console") == 0)
-        )
-    {
-        yield();
-        if(get_tick_count() > timeout)
-        {
-            if(init_service_get("cmos") == 0)
-            {
-                puts("[ SHELL ] Konnte den CMOS-Treiber nicht finden!");
-            }
-
-            
-            if(init_service_get("console") == 0)
-            {
-              puts("[ SHELL ] Konnte den Konsolentreiber nicht finden!");
-            }
-
-            puts("[ SHELL ] Shell beendet!");
-
-            return -1;
-        }
-    }
-
     // Startskript ausfuehren
     shell_script("file:/config/shell/start.lsh");
 
-- 
1.6.0.6