main: removed init/shell exec
@@ -38,11 +38,9 @@ void main_initthr(void *unused)
{
int i;
syspage_program_t *prog, *last = NULL;
- oid_t oid = { 0, 0 };
int xcount = 0;
char *cmdline = syspage->arg, *end;
char *argv[32], *arg, *argend;
- time_t sleep;
/* Enable locking and multithreading related mechanisms */
_hal_start();
@@ -130,32 +128,8 @@ void main_initthr(void *unused)
proc_execve(last, last->cmdline, argv, NULL);
}
- sleep = 10000;
- proc_fileGet(0, 1, &oid, 0, NULL);
- while (proc_write(oid, 0, "", 1, 0) < 0) {
- proc_fileGet(0, 1, &oid, 0, NULL);
- proc_threadSleep(sleep);
-
- if ((sleep *= 2) > 2000000)
- sleep = 2000000;
- }
-
- sleep = 10000;
- while (proc_lookup("/", &oid) < 0) {
- proc_threadSleep(sleep);
-
- if ((sleep *= 2) > 2000000)
- sleep = 2000000;
- }
-
- /* Initialize system */
- proc_execle(NULL, "/bin/init", "init", NULL, NULL);
- proc_execle(NULL, "/sbin/busybox", "/sbin/busybox", "ash", NULL, NULL);
- proc_execle(NULL, "/bin/psh", "/bin/psh", NULL, NULL);
-
for (;;)
proc_threadSleep(2000000);
-
}
