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);
|