OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [init/] [main.c] - Diff between revs 727 and 743

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 727 Rev 743
Line 278... Line 278...
char nfs_root_addrs[NFS_ROOT_ADDRS_LEN] = { "" };
char nfs_root_addrs[NFS_ROOT_ADDRS_LEN] = { "" };
#endif
#endif
 
 
extern void dquot_init(void);
extern void dquot_init(void);
 
 
 
//static char * argv_init[MAX_INIT_ARGS+2] = { "ping", "10.1.1.2", NULL, };
static char * argv_init[MAX_INIT_ARGS+2] = {  NULL, };
static char * argv_init[MAX_INIT_ARGS+2] = {  NULL, };
static char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
static char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
 
 
static char * argv_rc[] = { "/bin/sh", NULL };
static char * argv_rc[] = { "/bin/sh", NULL };
static char * envp_rc[] = { "HOME=/", "TERM=linux", NULL };
static char * envp_rc[] = { "HOME=/", "TERM=linux", NULL };
Line 1202... Line 1203...
 
 
        (void) dup(0);
        (void) dup(0);
        (void) dup(0);
        (void) dup(0);
 
 
#if 0
#if 0
        printf("Executing sash\n");
        printf("Executing ping... ");
        execve("/bin/sash",argv_init,envp_init);
        execve("/bin/ping",argv_init,envp_init);
#else
        printf("failed\n");
        printf("Executing nano-X\n");
 
        execve("/bin/landmine",argv_init,envp_init);
 
 
 
        printf("Executing sash\n");
        printf("Executing nano-X... ");
        execve("/bin/sash",argv_init,envp_init);
        execve("/bin/landmine",argv_init,envp_init);
 
        printf("failed\n");
#endif
#endif
 
        printf("Executing sash... ");
 
        execve("/bin/sash",argv_init,envp_init);
 
        printf("failed\n");
 
 
        if (!execute_command) {
        if (!execute_command) {
                execve("/etc/init",argv_init,envp_init);
                execve("/etc/init",argv_init,envp_init);
                execve("/bin/init",argv_init,envp_init);
                execve("/bin/init",argv_init,envp_init);
                execve("/sbin/init",argv_init,envp_init);
                execve("/sbin/init",argv_init,envp_init);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.