diff --git a/src/bin/init/main.c b/src/bin/init/main.c index 726d1d6..5010da1 100644 --- a/src/bin/init/main.c +++ b/src/bin/init/main.c @@ -36,13 +36,11 @@ int main(int argc,char **argv) { int i=0; - /* Start the SDE(SCreen Drawing Engine) */ - startSDE(); /* Test to see if we were started by the system if not exit */ if (getpid() != 1) { printf("Error: This program must be started by kernel.\n"); - //exit(1); + exit(1); } /* Make sure we have superuser permissions if not exit */ @@ -51,13 +49,15 @@ exit(1); } + /* Start the SDE(SCreen Drawing Engine) */ + startSDE(); printf("Initializing System.\n"); startup: i = fork(); if (0 == i) { printf("Starting Login Daemon.\n"); - exec("login",0x0,0x0); + exec("login@sys",0x0,0x0); printf("Error Starting System\n"); exit(0); } @@ -71,6 +71,9 @@ /*** $Log$ + Revision 1.2 2004/05/21 15:43:58 reddawg + Fixed the the bootup ordering in userland initialization + END ***/